PHP function array_fill()

Availability in versions: PHP 4.2.0

Filling the field with values

Parameters

Parameter Data type Default value Note
$start_index int not First index of the returned field. Only non-negative indices are supported.
$num int not Number of elements inserted
$value mixed not

Return values

array - modified array

Additional resources

Official array-fill documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.