php ltrim function : php remove left string
Remove characters from the left side of a string:
Example
<?php
$str = “Hello World!”;
echo $str . “<br>”;
echo ltrim($str,”Hello”);
?>
$str = “Hello World!”;
echo $str . “<br>”;
echo ltrim($str,”Hello”);
?>
Output:
World!