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