$word = 'בדיקה'; echo "<pre>"; if (preg_match("/[א-ת]/",$word)) { echo "hebrew is not allowed"; } else { echo "all ok :)"; } die();