Google
  Web www.spinics.net

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

[PHP Home]     [PHP Users]     [PHP Install]     [PHP on Windows]     [Programming PHP]     [Kernel Newbies]     [Rice Cooker]     [Home]     [Yosemite News]     [Yosemite Photos]     [PHP Books]

Powered by Linux