To determine the key of an array by knowing its value, there are at least three possible solutions:
- You can use the well-known array_search function. We already used it earlier in the article on removing an element from an array.
- Use a loop to iterate through all elements of the array and compare values to identify the key.
- Use the array_walk function, imitating option 2.


