Skip to content

Kirby 3.5.7.1

A::fill()

Fills an array up with additional elements to certain amount.

A::fill(array $array, int $limit, mixed $fill = 'placeholder'): array

Parameters

Name Type Default Description
$array * array The source array
$limit * int The number of elements the array should
contain after filling it up.
$fill mixed 'placeholder' The element, which should be used to
fill the array

Return type

array

Parent class

Kirby\Toolkit\A