array_pad in PHP

Syntax of array_pad array array_pad(array input, int size[, mixed padding]) Returns a copy of the input array padded to the length specified by size. Any new elements added to the array have the value of the optional third value. You can add elements to the beginning of the array by specifying a negative size—in this … Read more