Regularization of special symbols such as PHP filter ★

  • 2020-12-20 03:31:30
  • OfStack

 
if(preg_match("/[ '.,:;*?~`!@#$%^&+=)(<>{}]|\]|\[|\/|\\\|\"|\|/",$user)){ 
echo ' Don't put any special characters in your name, just use letters, numbers and Chinese characters, and of course use simplified Chinese in your browser GB2312 Yo, don't choose traditional Chinese HZ And so on. Return after modification, come again, I wait for you! '; 
exit(); 
} 

Related articles: