This question already has an answer here:
- PHP - Get key name of array value 9 answers
How to get the Cat by using the value Nap
in array
["Dog" => "Bite", "Cat" => "Nap"]
and i want to get Cat
using value Nap
</div>
This question already has an answer here:
How to get the Cat by using the value Nap
in array
["Dog" => "Bite", "Cat" => "Nap"]
and i want to get Cat
using value Nap
</div>
$key = array_search('Nap', $array);