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 count the number of words in my text?How do I convert newlines to HTML line break tags?
Hello, Is it possible to specify a character-encoding in the filter_var function. Thank you for your reply, Jan
How do I fetch the meta tags from a webpage using PHP?
How do I join strings together?
