note 84428 added to language.operators.comparison
| From: | gnackattack at gmail dot com | Date: | Mon, 14 Jul 2008 09:20:27 +0000 |
| Subject: | note 84428 added to language.operators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141471@lists.php.net to get a copy of this message | ||
In response to Irobeth...
I think that occurs simply because
'if' . ($sql === "equals")
would evaluate to true, as far as I'm aware. As I understand it, the ternary operator will
process the entire thing, and since 'if' is not an empty or null string it will evaluate
to true.
----
Server IP: 117.104.160.194
Probable Submitter: 124.168.225.166
----
Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php
Edit -- https://master.php.net/note/edit/84428
Del: integrated -- https://master.php.net/note/delete/84428/integrated
Del: useless -- https://master.php.net/note/delete/84428/useless
Del: bad code -- https://master.php.net/note/delete/84428/bad+code
Del: spam -- https://master.php.net/note/delete/84428/spam
Del: non-english -- https://master.php.net/note/delete/84428/non-english
Del: in docs -- https://master.php.net/note/delete/84428/in+docs
Del: other reasons-- https://master.php.net/note/delete/84428
Reject -- https://master.php.net/note/reject/84428
Search -- https://master.php.net/manage/user-notes.php