Strange php problem [closed]
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this questionThe following code:
print_r($_GET);
echo '<br />';
echo isset($_GET['logout'])?'yes':'no';
prints:
Array ( [logoout] => )
no
Why is it printing "no" instend of "yes"?
logoout - double "o"
精彩评论