Created
August 23, 2014 16:13
-
-
Save egulhan/8019f848ecd6da4b513c to your computer and use it in GitHub Desktop.
Remove non-ascii characters using PHP
This file contains hidden or 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
| function removeNonAsciiChars($str) | |
| { | |
| return preg_replace('/[[:^print:]]/','',$str); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment