Skip to content

Instantly share code, notes, and snippets.

@thefuxia
Created October 8, 2009 13:58
Show Gist options
  • Save thefuxia/205040 to your computer and use it in GitHub Desktop.
Save thefuxia/205040 to your computer and use it in GitHub Desktop.
function is_ascii ()
<?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