The PHP function ltrim() is used to remove white space from the beginning of a string.
Let's check the following example to understand how this function actually works
<?php $string = ' Welcome to America'; echo strlen($string); // Outputs: 16 $ltrim_str = ltrim($string); echo strlen($ltrim_str); // Outputs: 12 ?>0 0
Please Login to Post the answer