4
I wish 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 function in_array();
but to find out the key of the array to which that value belongs? how can I do this in a simple way? using the given example, using the given value '1', find the key "first".