array_search

PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
array_search - Searches the array for a given value and returns the first corresponding key if successful

Example #1 array_search example

PHP Version:


Example #2 of array_search

PHP Version:


Function array_search:

Arrays Functions

Most used PHP functions