Indent
Less than 1 minute
Indent
Indent a string with a specified number of spaces or a custom string.
class IndentMethods
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 Fri, 05 Jun 2026 06:08:14 +0000