赣南脐橙

佰草伐

导航

array_fill — 用给定的值填充数组

array_fill — 用给定的值填充数组

说明

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

array_fill()value 参数的值将一个数组填充 num 个条目,键名由 start_index 参数指定的开始。https://www.miqile.cn/

参数

 

start_index

返回的数组的第一个索引值。

如果 start_index 是负数, 那么返回的数组的第一个索引将会是 start_index ,而后面索引则从0开始。 (参见 例子)。

num

插入元素的数量。 必须大于或等于 0。

value

用来填充的值。

 

返回值

返回填充后的数组。

错误/异常

如果 num 小于零,将会抛出 E_WARNING。 

posted on 2020-12-04 14:28  佰草伐  阅读(100)  评论(0编辑  收藏  举报

自定义导航网站

php基础知识

Wood Furniture