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 Wed, 07 Jan 2026 11:29:59 +0000