Skip to content

pad_right

Signature

pad_right(string, number, string)

Description

Adds characters to the end of a string.

Examples

pad_right('foo', `5`, '0') == 'foo00'
pad_right('42', `6`, ' ') == '42    '
pad_right('hello', `3`, '*') == 'hello'