|
array_fillFill an array with values Description
array array_fill
( int
$start_index
, int $num
, mixed $value
)
Fills an array with
Parameters
Return ValuesReturns the filled array Errors/Exceptions
Throws a Changelog
Examples
Example #1 array_fill example
<?php The above example will output: Array ( [5] => banana [6] => banana [7] => banana [8] => banana [9] => banana [10] => banana ) Array ( [-2] => pear [0] => pear [1] => pear [2] => pear ) NotesSee also the Arrays section of manual for a detailed explanation of negative keys. See Also
|