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' )
精彩评论