JString::ltrim
UTF-8 aware replacement for ltrim()
Strip whitespace (or other characters) from the beginning of a string You only need to use this if you are supplying the charlist optional arg and it contains UTF-8 characters. Otherwise ltrim will work normally on a UTF-8 string
Signature
public function ltrim(string
$str,
[string
$charlist = false] )
Parameters
-
$str
- The string to be trimmed
-
$charlist
- The optional charlist of additional characters to trim
Returns
- string
- The trimmed string