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