array_search

  • (PHP 4 >= 4.0.5, PHP 5, PHP 7)
  • Searches the array for a given value and returns the first corresponding key if successful