I have some string:
$str = 'Xin chào';
$str2 = 'Xin chào 1';
In order to check if these two string variables is alphabetic, I've tried with ctype_alpha
.
However, both of ctype_alpha($str)
and ctype_alpha($str2)
are falsy.
Is there any other method that similars to ctype_alpha
and working great with UTF-8?