Get the first element of an array

array:get_first_value(ARRAY $array)

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

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

array:get_first_value([])
#=> NULL

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