Pad a String with another String, to a certain length.
Syntax
Parameters
subject - The String to pad.length - The length to pad the String to.padding - The String to use as padding (defaults to spaces).type - Which side(s) to pad.0 - Pad the left-hand side of subject.1 (default) - Pad the right-hand side of subject.2 - Pad both sides of subject.
Result
Returns subject padded on the left, right, or both sides, to the specified length.