ltrim() function removes the whitespace and special characters from the left side of string : ltrim « String « PHP






ltrim() function removes the whitespace and special characters from the left side of string

 
Its syntax follows: string ltrim (string str)
<?

print ">".ltrim(" asdf ")."<";

?>
  
  








Related examples in the same category

1.ltrim() function to strip white space only from the beginning of a string.
2.Left padding using the default of spaces