bool array_key_exists ( array $key, array $array_variable )
array_key_exists checks if the specified key exists in the specified array. Remember that all array elements are keyed in arrays either by the declared, literal key or by the implied numerical index key.
- Key or index you want to check in the array.
- The array to check.
TRUE when the key does exist in the array; else it returns
Show It in ActionBasic
Let’s see the
array_key_exists function in action. In this video, you will see how it works.
If you listen carefully, you can hear the 1s and 0s flowing in your computer.
In this video, you will go deeper into the instruction.
In this video, you will learn when to use