How can I add/improvised my code so Spanish accent will be considered as valid in addition to normal alphabet (a-z)
I have the following in my code
public static function IsAlpha($s){
$reg = "#[^a-z\s-]#i";
$count = preg_match($reg, $s, $matches);
return $count == 0;
}