php如何去掉指定字符串
导读
PHP在字符串中查找指定字符串并删除的代码
$a = "abcababa"; $count=strpos($a,"ab"); $str=substr_replace($a,"",$count,2);
输出结果:cababa
评论(0)
导读
PHP在字符串中查找指定字符串并删除的代码
$a = "abcababa"; $count=strpos($a,"ab"); $str=substr_replace($a,"",$count,2);
输出结果:cababa