note 40841 added to function.in-array
| From: | alanatholotechdotnet at rn2 dot php dot net | Date: | Tue, 16 Mar 2004 21:48:43 +0000 |
| Subject: | note 40841 added to function.in-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66926@lists.php.net to get a copy of this message | ||
jonas at delfs dot dk noted this fact, but it was not clear: if your array contains any string
value, then searching for an integer 0 will always return true.
----
Manual Page -- http://www.php.net/manual/en/function.in-array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40841
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40841&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40841&report=yes
Search -- http://master.php.net/manage/user-notes.php