I would like that through a given value I could return the array key. Example:
$array = array("primeiro" => 1, "segundo" => 2, "terceiro" => 3);
To find out if the value exists in the array there is the in_array();
function, but to find out the array key to which that value belongs? how can I do this in a simple way? using the given example, through the given value '1', find out the 'first' key.