How to remove the first character of string in PHP?

后端 未结 13 2305
一整个雨季
一整个雨季 2020-12-02 06:00
$str=\':this is a applepie :) \';

How to use PHP, Remove the first character :

13条回答
  •  猫巷女王i
    2020-12-02 06:33

    To remove first Character of string in PHP,

    $string = "abcdef";     
    $new_string = substr($string, 1);
    
    echo $new_string;
    Generates: "bcdef"
    

提交回复
热议问题