note 111322 deleted from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Tue, 05 Mar 2013 16:12:35 +0000 |
| Subject: | note 111322 deleted from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-193932@lists.php.net to get a copy of this message | ||
Note Submitter: jsnell at e-normous dot com
----
The (!$a == 'hello') and ($a != 'hello') in an earlier comment is misleading.
These two expressions are entirely different. ! has a higher precedence than ==, (!$a ==
'hello') will return false for any value (such as a valid string) that converts into a
boolean of true