String.padBoth
padBoth($length, $padString=' ') -> string
Description
Expand string to $length characters, by adding $padString to the left and right sides.
'willow'.padBoth(10) //= ' willow ' 'willow'.padBoth(10, '.') //= '..willow..'
Expand string to $length characters, by adding $padString to the left and right sides.
'willow'.padBoth(10) //= ' willow ' 'willow'.padBoth(10, '.') //= '..willow..'