Skip to content

Kirby 4.4.1

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