Pop the element off the beginning of an array.

function

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

Examples

Examples

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

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


Outcome:

Array ( "red", "blue" )
green