In JS I used this code:
if(string.match(/[^A-Za-z0-9]+/))
but I don\'t know, how to do it in PHP.
if you need to check if it is English or not. you could use below function. might help someone..
function is_english($str) { if (strlen($str) != strlen(utf8_decode($str))) { return false; } else { return true; } }