padLeft
Adds padding to the left of the string.
Description
static padLeft(int $length, string $padStr = ' ')
Parameters
-
int $length
Desired string length after padding. - string $padStr
String used to pad, defaults to space.
Return Value
static
String with left padding.