Insert Array Elements in PHP
What is array_pad() Function?
The "array_pad()" function inserts a specified number of elements, with a specified value, to an array.
In the above syntax for insert the array elements is mandatory, "size" specifies the total number of elements to be added,"value" specifies the value for the elements.
Array ( => Fruit  => Orange  => Guava  => Guava )
Array ( => Lemon  => Fruit  => Orange )
In the above example the total number of elements is 5,which is assigned to 0 apart from the elements already in the array.When assigned a negative value that is "-5" first the elements are added then the existing elements are displayed.