开发者

php ternary operator

A little stuck I have the following

echo isset($_开发者_C百科GET['start_date']) ? $_GET['start_date'] : date('d/m/o');

and my IDE is reporting an error I can't see it but if you can you will have my eternal gratitude.

I know I should not be echoing this straight out but in the short term I want to get this up and running so an echo will suffice for now, eventually to be replaced by a variable.


Update your IDE.
Or use a better IDE.


Add another () around your isset (basically around your 'if' )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜