Get last key of a given array

array:get_last_key(ARRAY $array)

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

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

array:get_last_key([])
#=> NULL

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