Indent
Less than 1 minute
Indent
Indent a string with a specified number of spaces or a custom string.
Methods
run
public run(string $string, int $length = 4, string $pad_string = ' '): string
Parameters
Parameter | Type | Description |
---|---|---|
$string | string | The input string |
$length | int | The number of spaces to indent the string |
$pad_string | string | The string to use for indentation |
Generated by Hazaar API Doc Generator