note 25938 deleted from function.array-search by didou

From: Date: Tue, 16 Dec 2003 09:32:00 +0000
Subject: note 25938 deleted from function.array-search by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62030@lists.php.net to get a copy of this message
Note Submitter: bandit_109@hotmail.com ---- [Editors Note: If you check for false using === it will *only* be found if it is the literal FALSE, and not 0.] The array_search function is great.. IF you give the keys unique names, if you let php do it automatically it will only number them 0-whatever. So if you then search for a value and it is found at 0 then the function will return 0 aka false.

« previous php.notes (#62030) next »