PHP array_search() function
The array_search() function is an inbuilt function of PHP. It is used to search the array against the given value. The function returns the first corresponding key if successful. This function was introduced in PHP 4.0.5.
The array_search() function returns the key of the corresponding value that is passed. If not found, FALSE is returned, and if there are more than one matches, the first matched key is returned.
Next TopicPHP Array Functions