What does array_search actually return if a value is not found?
| From: | Jacob Kruger | Date: | Wed, 09 Mar 2011 14:02:35 +0000 |
| Subject: | What does array_search actually return if a value is not found? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-30523@lists.php.net to get a copy of this message | ||
According to online manual etc., I have tried testing it against both false, and -1 using operators
like == != === etc., but for whatever reason I can't seem to manage to compare/test it's
return value successfully to determine whether or not a value actually exists in an array, and get
returned the relevant index/key.
TIA
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'