Skip to content

Kirby 4.5.0

A::slice()

Returns a slice of an array

A::slice(array $array, int $offset, ?int $length = null, bool $preserveKeys = false): array

Parameters

Name Type Default
$array * array
$offset * int
$length int|null null
$preserveKeys bool false

Return type

array

Parent class

Kirby\Toolkit\A