In the manual about array_search()
Warning
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE, such as 0 or "". Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.
So if the key of array_search value is 0, it will return 0. And if the search finds no results, it could also return 0. Then how can we tell which is which? No value found, or the value found at the index 0?
Does it mean array_search also have to work with in_array to tell the difference between return index value 0 or return not found message 0?
Thanks!