PHP在字符串中查找指定字符串並刪除

$a = "abcababa"; $count=strpos($a,"ab"); $str=substr_replace($a,"",$count,2);   輸出結果:cababa 代碼雖短,但也算是一個小算法!
相關文章
相關標籤/搜索