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 $padString = ' '): stringParameters
| Parameter | Type | Description |
|---|---|---|
$string | string | The input string |
$length | int | The number of spaces to indent the string |
$padString | string | The string to use for indentation |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000