两个字符串替换方法的用法比较
preg_replace ( ) 和 preg_match_all ( ) 是两个用法相反的字符串替换函数;
preg_replace ( ) -------- 去掉字符串中不需要的部分,取其他部分;
preg_match_all ( ) -------- 取字符串中需要的部分,其他部分去掉;
preg_replace ( ) -------- 去掉字符串中不需要的部分,取其他部分;
preg_match_all ( ) -------- 取字符串中需要的部分,其他部分去掉;