padRight

Adds padding to the right of the string.

Description

static padRight(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 right padding.