array_fillFill an array with values
&reftitle.description;
arrayarray_fillintstart_indexintnummixedvalue
Fills an array with
num entries of the value of the
value parameter, keys starting at the
start_index parameter.
&reftitle.parameters;
start_index
The first index of the returned array
num
Number of elements to insert
value
Values to use filling
&reftitle.returnvalues;
Returns the filled array
&reftitle.errors;
Throws a E_WARNING if num is
less than one.
&reftitle.examples;
array_fill example
]]>
&example.outputs;
banana
[6] => banana
[7] => banana
[8] => banana
[9] => banana
[10] => banana
)
Array
(
[-2] => pear
[0] => pear
)
]]>
&reftitle.notes;
See also the Arrays
section of manual for a detailed explanation of negative keys.
&reftitle.seealso;
str_repeatrange