-
Notifications
You must be signed in to change notification settings - Fork 15
array_fill
Chung Leong edited this page Jan 10, 2022
·
3 revisions
array_fill - Fill an array with values
array array_fill( uint32 $start_index, uint32_t $num, mixed $value )
array_fill() fills an array with num entries of the value of the value parameter, starting at start_index. Entries prior to start_index will be set to zero.
start_index - The starting index.
num - Number of elements to set. Must be greater than zero.
value - Value to use for filling. It can be a scalar or a fixed-length array.
The filled array. The return value will have the length start_index + num.
1.4 and above.