Pop the element off the end of array.

function

{{$element = array_pop($array)}}

Examples

Examples

{{$array = ["green", "red", "blue"]}}
{{$element = array_pop($array)}}

{{$array|print_r}}
{{$element|print_r}}


Outcome:

Array ( "green", "red" )
blue