Pop the element off the end of array.
Pop the element off the end of array.
function
{{$element = array_pop($array)}}
Examples
{{$array = ["green", "red", "blue"]}}
{{$element = array_pop($array)}}
{{$array|print_r}}
{{$element|print_r}}
Outcome:
Array ( "green", "red" )
blue