note 93220 added to control-structures.if
| From: | jm+phpweb at roth dot lu | Date: | Fri, 28 Aug 2009 21:25:06 +0000 |
| Subject: | note 93220 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160006@lists.php.net to get a copy of this message | ||
Be careful with stuff like
if ($nkey = array_search($needle, $haystack)) { ...
if the returned key is actually the key 0, then the if won't be executed
----
Server IP: 208.69.120.35
Probable Submitter: 88.134.74.3
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/93220
Del: integrated -- https://master.php.net/note/delete/93220/integrated
Del: useless -- https://master.php.net/note/delete/93220/useless
Del: bad code -- https://master.php.net/note/delete/93220/bad+code
Del: spam -- https://master.php.net/note/delete/93220/spam
Del: non-english -- https://master.php.net/note/delete/93220/non-english
Del: in docs -- https://master.php.net/note/delete/93220/in+docs
Del: other reasons-- https://master.php.net/note/delete/93220
Reject -- https://master.php.net/note/reject/93220
Search -- https://master.php.net/manage/user-notes.php