PHP string ltrim() function is predefined function. It is often used to remove whitespace from both sides of a string or other character from the left side of a string.
Syntax:
ltrim(string,charlist);
Parameter
Description
Required/Optional
String
Specify the string to check.
Required
charlist
Specify character to remove from the string.