php array_fill () function syntax
Role: fill the array with a key. Marble platform price
语法:array_fill(index,number,value)
parameter:
parameter | description |
index | essential. It is returned first index of the array. |
number | essential. Several provisions to be inserted elements. |
value | essential. Filling a predetermined value for the array used. |
Description: with a given filling array value, the array element number has returned, the value value. An array of a numeric index to return, starting from the start position and increments. If the number is less than 0 or 0, an error occurs.
php array_fill () function examples
<?php $a=array_fill(2,3,"无忌"); print_r($a); ?>