How to check a String or character is a Unicode character or not with PHP?
1Answer
I found it more useful to detect if any character falls out of the list
if(preg_match('/[^\x20-\x7f]/', $string))
- answered 8 years ago
- Sunny Solu
I found it more useful to detect if any character falls out of the list
if(preg_match('/[^\x20-\x7f]/', $string))
Your Answer