note 101378 deleted from language.operators.comparison by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Dec 2010 17:47:51 +0000 |
| Subject: | note 101378 deleted from language.operators.comparison by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174885@lists.php.net to get a copy of this message | ||
Note Submitter: ch at lathspell dot de
----
Re: mail at markuszeller dot com
> I prefer writing (!$a == 'hello') much more than ($a != 'hello'), but I
> wondered about the performance.
What do you mean? The above are not equivalent? "!$a" evaluates to "false" for
strings which explains why it compares faster than a string.