Skip to content

pad_left

Signature

pad_left(string, number, string)

Description

Adds characters to the beginning of a string.

Examples

pad_left('foo', `5`, '0') == '00foo'
pad_left('42', `6`, ' ') == '    42'
pad_left('hello', `3`, '*') == 'hello'