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