Pad a string to a certain length with another string
public render ( integer $padLength, string $padString = ' ', string $padType = 'right', string $value = null ) : string | ||
$padLength | integer | Length of the resulting string. If the value of pad_length is negative or less than the length of the input string, no padding takes place. |
$padString | string | The padding string |
$padType | string | Append the padding at this site (Possible values: right,left,both. Default: right) |
$value | string | string to format |
return | string | The formatted value |