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 find the length of a string in PHP?How do I extract the values of variables from a string?
How do I turn a string into an array?
What is the difference between join and implode in PHP?
How do I fetch the meta tags from a webpage using PHP?
