What does array_search actually return if a value is not found?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...'

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux