Name
ltrim() — Trim characters from the front (left) of a string
Common Usage
ltrim(text) ltrim(text,extra)
Description
The ltrim() function returns a copy of
that has been stripped of any prefix that consists
solely of characters from text
. Characters from extra
that are contained in the body of extra
remain untouched.text
If
is not provided, it is assumed to consist of the
ASCII space (extra
0x20) character.
By default, tab characters and other whitespace are not
trimmed.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access