array_fill

array_fill

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

array_fillFill an array with values

Description

array array_fill ( int $start_index , int $num , mixed $value )

Fills an array with num 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.

登录查看完整内容