Get first key of a given array

array:get_first_key(ARRAY $array)

array:get_first_key([1,2,3])
#=> 0

array:get_first_key(["name" => "SunSed", "last" => "Cloud"])
#=> "name"

array:get_first_key([])
#=> NULL

Copyright ©2013-2022 SunSed®. All rights reserved.