| PHP » GoLang | login |
            register |
            
            about | 
| array_fill(PHP 4 >= 4.2.0, PHP 5, PHP 7) array_fill — Fill an array with values Description
   Fills an array with
    Parameters
 
 Return ValuesReturns the filled array Errors/Exceptions
   Throws a  Changelog
 
 Examples
 Example #1 array_fill() example 
<?phpThe above example will output: 
Array
(
    [5]  => banana
    [6]  => banana
    [7]  => banana
    [8]  => banana
    [9]  => banana
    [10] => banana
)
Array
(
    [-2] => pear
    [0] => pear
    [1] => pear
    [2] => pear
)
NotesSee also the Arrays section of manual for a detailed explanation of negative keys. See Also
 
 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |