Created
October 15, 2014 08:30
-
-
Save caiyili/0d709b44b1786b546227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
preg_replace("/[^\x{4e00}-\x{9fa5}A-Za-z0-9 ,_!@#$%*;?]/u", "", $str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment