Trying to figure out how to tell whether a string contains any characters in Hebrew with no luck.
How can this be done?
If the source string is UTF-8 encoded, then the simpler approach would be using p{Hebrew} in the regex.
p{Hebrew}
The call also should have the /u modifier.
/u
= preg_match("/p{Hebrew}/u", $string)
1.4m articles
1.4m replys
5 comments
57.0k users