How to remove the first character of string in PHP?

 <?php 

$str = "geeks"; 

        // Or we can write ltrim($str, $str[0]); 

$str = ltrim($str, 'g'); 

        echo $str; 

?> 

Popular posts from this blog

Ajax Toggle(on/off) on-click Update

Yii Framework In Update Time View Image In Form