array_search() in php

array_search() in php

array_search() search an array for a value and returns the key.