Strip whitespace (or other characters) from the beginning of string only (aka left trim)
Available since version 3.0.168.
Usage
// basic usage
$string = $wireTextTools->ltrim(string $str);
// usage with all arguments
$string = $wireTextTools->ltrim(string $str, string $chars = '');
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | |
chars (optional) | string | Omit for default |
Return value
string
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236