String.padLeft
padLeft($length, $padString=' ') -> string
Description
Expand string to $length
characters, by adding $padString
to the beginning.
'willow'.padLeft(10) //= ' willow' 'willow'.padLeft(10, '.') //= '....willow'
Expand string to $length
characters, by adding $padString
to the beginning.
'willow'.padLeft(10) //= ' willow' 'willow'.padLeft(10, '.') //= '....willow'