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)
2.1m questions
2.1m answers
60 comments
57.0k users