How do I detect non-ASCII characters in a string?

I found it more useful to detect if any character falls out of the list

if(preg_match('/[^\x20-\x7e]/', $string))

Leave a Comment