note 25938 modified in function.array-search by jellybob

From: Date: Fri, 18 Apr 2003 22:00:48 +0000
Subject: note 25938 modified in function.array-search by jellybob
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-46797@lists.php.net to get a copy of this message
[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. --was-- 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. http://www.php.net/manual/en/function.array-search.php

« previous php.notes (#46797) next »