标签:sharp turn ret ace str div name arp function
function filterNickname($nickname)
{
$nickname = preg_replace(‘/[\x{1F600}-\x{1F64F}]/u‘, ‘‘, $nickname);
$nickname = preg_replace(‘/[\x{1F300}-\x{1F5FF}]/u‘, ‘‘, $nickname);
$nickname = preg_replace(‘/[\x{1F680}-\x{1F6FF}]/u‘, ‘‘, $nickname);
$nickname = preg_replace(‘/[\x{2600}-\x{26FF}]/u‘, ‘‘, $nickname);
$nickname = preg_replace(‘/[\x{2700}-\x{27BF}]/u‘, ‘‘, $nickname);
$nickname = str_replace(array(‘"‘,‘\‘‘), ‘‘, $nickname);
return addslashes(trim($nickname));
}
标签:sharp turn ret ace str div name arp function
原文地址:https://www.cnblogs.com/JANCHAN/p/10851131.html