Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
s = s.PadRight(m, c);
s = s.padRight(m, c);
s = s.padEnd(m, c);
while (s.length() < m) s = s + c;
$s .= $c x ($m - length $s)
$s = length($s) >= $m ? $s : $s . $c x ( $m-length($s) );
s = s.ljust(m, c)
s = f'{s:{c}<{m}}'
s = s.ljust(m, c)