array get first key code example Example: get first key of array php $firstKey = array_key_first($array);