create padded string with specified length and padding string
input string
output string length
Optional
padding character (default is "0")
padded string
strpad("1234", 10, "0") -> "0000001234"strpad("1234", 10, " ") -> " 1234"strpad("1234", 10) -> "0000001234" Copy
strpad("1234", 10, "0") -> "0000001234"strpad("1234", 10, " ") -> " 1234"strpad("1234", 10) -> "0000001234"
create padded string with specified length and padding string