Is there a way to detect the language of the data being entered via the input field?
public static function isArabic($string){ if(preg_match('/\p{Arabic}/u', $string)) return true; return false; }