[PHP]: What does array_search() return if nothing was found?
- by Derek Adair
What does array_search() return if nothing was found?
I have the need for the following logic:
$found = array_search($needle, $haystack);
if($found){
//do stuff
} else {
//do different stuff
}