Remove first 4 characters of a string with PHP

前端 未结 7 1237
我在风中等你
我在风中等你 2020-12-02 04:43

How can I remove the first 4 characters of a string using PHP?

相关标签:
7条回答
  • 2020-12-02 05:23

    You can use this by php function with substr function

    <?php
    function removeChar($value) {
        $value2 = substr($value, 4); 
        return $value2;
    }
    
    echo removeChar("Dummy Text. Sample Text.");
    ?>
    

    You get this result: " y Text. Sample Text. "

    0 讨论(0)
提交回复
热议问题