Yngvarr

Generation

generate functionSat, 07 Jan 2023

get last value from array

function get_last($array) { return count($array) ? $array[count($array) - 1] : null; }

Questions about programming?Chat with your personal AI assistant