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 text that has been stripped of any prefix that consists solely of characters from extra . Characters from extra that are contained in the body of text remain untouched.

If extra is not provided, it is assumed to consist of the ASCII space (0x20) character. By default, tab characters and other whitespace are not trimmed.

See Also

rtrim(), trim()

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.