I have an array where I want to search the uid and get the key of the array.
uid
Assume we have the following 2-dimensional array:
Try this
$value) { $current_key=$key; if($needle===$value OR (is_array($value) && recursive_array_search($needle,$value) !== false)) { return $current_key; } } return false; } ?>