The array_pad() function inserts a specified number of elements, with a specified value, to an array.
Hint: If you assign a negative size parameter, the function will insert new elements BEFORE the original elements. (See Example)
Note: This function will not delete any elements if the size parameter is less than the original array's size.
The output of the code above will be:
With a negative size parameter:
Your Query was successfully sent!