Created
October 8, 2009 13:58
-
-
Save thefuxia/205040 to your computer and use it in GitHub Desktop.
function is_ascii ()
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 | |
function is_ascii ($str) | |
{ | |
return preg_match("/[\\000-\\126]/", $str); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment