How do I remove space from the start of a PHP string?
Here is a very simple example which is all you need to understand and how to apply this particular PHP function:
<?php
$text = " Give me some space";
echo "<" . ltrim($text) . ">";
//prints: <Give me some space>
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How do I calculate the metaphone of a string?How do I make the first letter of each word upper case?
How do I extract the values of variables from a string?
How can I remove spaces from around a string value?
How do I reverse a string in PHP?
