..


Sponsored Links

array_fill

The function returns an array array_fill populated with values. The accepted parameters are:

  • start (Required)
    Numeric value that specifies the starting index of the key.
  • who: (Required)
    Numeric value that specifies the number of entries.
  • value: (Required)
    Specifies the value to insert.
Example





 $ Arr = array_fill (2, 3, "dog");







 print_r ($ arr);



'S output of the code above will be:
 



 Array (



  



 [2] => Dog



  



 [3] => Dog



  



 [4] => Dog







 )

 

In the same category ...
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links