array_search
Searches the array for a given value and returns the
corresponding key if successful
Description
mixedarray_search
mixedneedle
arrayhaystack
boolstrict
Searches haystack for
needle and returns the key if it is found in
the array, &false; otherwise.
Prior to PHP 4.2.0, array_search returns
NULL on failure instead of &false;.
If the optional third parameter strict is set to
&true; then the array_search
will also check the types of the needle
in the haystack.
&return.falseproblem;
See also array_keys,
array_values,
array_key_exists, and
in_array.