note 101378 added to language.operators.comparison

From: Date: Mon, 13 Dec 2010 17:41:27 +0000
Subject: note 101378 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-174884@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 194.8.193.251 ---- Manual Page -- http://www.php.net/manual/en/language.operators.comparison.php Edit -- https://master.php.net/note/edit/101378 Del: integrated -- https://master.php.net/note/delete/101378/integrated Del: useless -- https://master.php.net/note/delete/101378/useless Del: bad code -- https://master.php.net/note/delete/101378/bad+code Del: spam -- https://master.php.net/note/delete/101378/spam Del: non-english -- https://master.php.net/note/delete/101378/non-english Del: in docs -- https://master.php.net/note/delete/101378/in+docs Del: other reasons-- https://master.php.net/note/delete/101378 Reject -- https://master.php.net/note/reject/101378 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174884) next »