(PHP 4, PHP 5)
ltrim — Strip whitespace (or other characters) from the beginning of a string
Strip whitespace (or other characters) from the beginning of a string.
The input string.
You can also specify the characters you want to strip, by means of the charlist parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters.
This function returns a string with whitespace stripped from the beginning of str. Without the second parameter, ltrim() will strip these characters: