ltrim()

Deprecated in 5.0.

Replaced with method trimLeft() of the string instance.

ltrim(string): String

Removes blanks (space and tab characters) from the left side of specified string.

Table 1. Parameters

string

String

String to trim

Return

Source string with blanks at the left side removed.

ltrim("  abc def  "); // Will print "abc def  "