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>
?>
More strings PHP Questions
How do I convert relevant characters in a string to HTML entities?What is the difference between ' and "?
How do I fetch the meta tags from a webpage using PHP?
How can I repeat a string variable several times?
How do I find the position of a letter in a string in PHP?