PHPArrayarray_slice

Extracts a slice of the array.

Syntax

array_slice(array $array, int $offset, ?int $length): array