Returns an array containing all members except the first from a supplied array.
array:tail
( $array
as array(*)
array(*)
The function returns an array containing all members of the supplied array except the first,
that is array:remove($array, 1)
.
The expression array:tail([5, 6, 7, 8])
returns [6, 7, 8]
.
The expression array:tail([5])
returns [ ]
.
A dynamic error occurs if $array
is empty.
If the supplied array contains exactly one member, the result will be an empty array.