Get last element of a given array

array:get_last_value(ARRAY $array)

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

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

array:get_last_value([])
#=> NULL

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