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