note 100476 deleted from language.operators.logical by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:15:27 +0000 |
| Subject: | note 100476 deleted from language.operators.logical by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189840@lists.php.net to get a copy of this message | ||
Note Submitter: ctulek at gmail dot com
----
Try this...
$a = 0;
$b = 'G';
$c = false;
echo $a == $b ? "true\n" : "false\n";
echo $a == $c ? "true\n" : "false\n";
echo $c == $b ? "true\n" : "false\n";
Output:
true
true
false
Very dangerous...