array_search()
to find the key associated with a specific value in an arrayarray_search()
to find the key associated with a specific value in an arrayarray_search()
allows you to search for a specific value within an array and returns the corresponding key if found. This function is useful when you need to locate an element's key without knowing its position in the array.