Mega Code Archive

 
Categories / Php / Strings
 

Ltrim() function to strip white space only from the beginning of a string

<?php $text = "\t\t\tlots of room  "; $text = ltrim( $text ); print "<pre>$text</pre>"; ?>