来个例子
可以使用该substr函数从第5个字符开始返回一个子字符串:
$str = "The quick brown fox jumps over the lazy dog."
$str2 = substr($str, 4); // "quick brown fox jumps over the lazy dog.
来个例子
可以使用该substr函数从第5个字符开始返回一个子字符串:
$str = "The quick brown fox jumps over the lazy dog."
$str2 = substr($str, 4); // "quick brown fox jumps over the lazy dog.
本文标题:PHP处理字符串,去掉前几个字符
本文链接:https://www.haomeiwen.com/subject/qndgfktx.html
网友评论