tail.php
Table of Contents
Functions
- tail() : array<string|int, mixed>
- Returns a new array containing all elements except the first one.
Functions
tail()
Returns a new array containing all elements except the first one.
tail(array<string|int, mixed> $array) : array<string|int, mixed>
If the input array is empty, returns an empty array.
Parameters
- $array : array<string|int, mixed>
-
The input array.
Tags
Return values
array<string|int, mixed> —A new array without the first element.