查找:
- function strreplace_strip_split($searchs, $replaces, $str) {
- $searchspace = array('((s*-s*)+)', '((s*,s*)+)', '((s*|s*)+)', '((s* s*)+)', '((s*_s*)+)');
- $replacespace = array('-', ',', '|', ' ', '_');
- return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- }
替换为:
- function strreplace_strip_split($searchs, $replaces, $str) {
- $searchspace = array('(((s)*-(s)*)+)',
'(((s)*,(s)*)+)', '(((s)*|(s)*)+)', '(((s)* (s)*)+)',
'(((s)*_(s)*)+)'); - $replacespace = array('$3-$3', '$3,$3', '$3|$3', '$3 $3', '$3_$3');
- return trim(preg_replace($searchspace, $replacespace, str_replace($searchs, $replaces, $str)), ' ,-|_');
- }
后台更新缓存~!