lpad() function

Returns a string with supplied width padded using the fill character.

Syntax

lpad(string, length, fill)

Arguments

string - is string. The string.
length - is int. The length of the new string.
fill - is char. The character to padd the remaining space with.

Example

lpad('Hello', 10, 'x') → 'Helloxxxxx'