Remove first 4 characters of a string with PHP

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

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

7条回答
  •  误落风尘
    2020-12-02 05:14

    If you’re using a multi-byte character encoding and do not just want to remove the first four bytes like substr does, use the multi-byte counterpart mb_substr. This does of course will also work with single-byte strings.

提交回复
热议问题