You can easily get an array value by its key like so: $value = array[$key] but what if I have the value and I want its key. What\'s the best way to get it?
$value = array[$key]
Your array values can be duplicates so it wont give you exact keys. However the way i think is fine is like iterate over and read the keys