How to remove the first character of string in PHP?

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

How to use PHP, Remove the first character :

13条回答
  •  醉梦人生
    2020-12-02 06:21

    you can use the sbstr() function

    $amount = 1;   //where $amount the amount of string you want to delete starting  from index 0
    $str = substr($str, $amount);
    

提交回复
热议问题