← All built-ins / ltrim()
ltrim()
ltrim(...$args): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | input string |
Return value
The string without leading whitespace.
Example
echo "[" . ltrim(" hello ") . "]";[hello ]
| Name | Type | Description |
|---|---|---|
| $s | string | input string |
The string without leading whitespace.
echo "[" . ltrim(" hello ") . "]";[hello ]