preg_replace ( ) 和 preg_match_all ( ) 是兩個用法相反的字串替換函數;
preg_replace ( ) -------- 去掉字串中不需要的部分,取其他部分;
preg_match_all ( ) -------- 取字串中需要的部分,其他部分去掉;
preg_replace ( ) 和 preg_match_all ( ) 是兩個用法相反的字串替換函數;
preg_replace ( ) -------- 去掉字串中不需要的部分,取其他部分;
preg_match_all ( ) -------- 取字串中需要的部分,其他部分去掉;
請先 登入 以發表留言。