static function replaceSpecialChar($strParam){
$regex = "/\/|\~|\!|\@|\#|\\$|\%|\^|\&|\*|\(|\)|\(|\)|\_|\+|\{|\}|\:|\<|\>|\?|\[|\]|\,|\.|\/|\;|「|」|\'|\`|\-|\=|\\\|\||\s+/";
return preg_replace($regex,"",$strParam);
}
PHP过滤脏字符
最新推荐文章于 2024-05-07 21:30:00 发布