$tagss = explode(,,$tags); 2、在该代码上一行添加: $tags = trim(ereg_replace([,;%\\\\*\\?\\r\\n\\t ]{1,},,,$tags)); 3、然后继续查找: $tags = explode(,,$tag); 4、在该代码上一行添加: $tag = trim(ereg_replace([,;%\\\\*\\ […]
$tagss = explode(’,',$tags); 2、在该代码上一行添加: $tags = trim(ereg_replace(”[,;'%><\\"\\*\\?\\r\\n\\t ]{1,}”,',',$tags)); 3、然后继续查找: $tags = explode(’,',$tag); 4、在该代码上一行添加: $tag = trim(ereg_replace(”[,;'%><\\"\\*\\?\\r\\n\\t ]{1,}”,',',$tag)); 本人总结的方法,实际以上红色部分应该添加的代码是这样的: $tags = trim(ereg_replace("[,;'%><\\"\\*\\?\\r\\n\\t ]{1,}",',',$tags));