PHP array_fill() Function

Complete PHP Array Reference

Definition and Usage

The array_fill() function returns an array filled with the values you describe.



Parameter Description
start Required. A numeric value, specifies the starting index of the key
number Required. A numeric value, specifies the number of entries
value Required. Specifies the value to be inserted



The output of the code above will be:

Array ( [2] => Dog [3] => Dog [4] => Dog )

Complete PHP Array Reference
Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!