Hello everyone, I need to retrieve the last item from an array. what is the best way of getting it?
You can use the end()
function to get the last item.
$item = end($Array);
Hello everyone, I need to retrieve the last item from an array. what is the best way of getting it?
You can use the end()
function to get the last item.
$item = end($Array);