padBoth
Adds padding to both sides of the string, equally.
Description
static padBoth(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 padding applied to both sides.