PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

array_fill

Tags: PHP 5.x PHP 7.x PHP 8.x

array_fill — Shift an element off the beginning of array.

Description

array_fill(
    int $start_index,
int $count,
mixed $value
): array
Fills an array with count entries of the value of the value parameter, keys starting at the start_index parameter.

Parameters

start_index
The first index of the returned array.
count
The number of entries to fill the array with.
value
The value to fill the array with.

Return Values

Returns the filled array.