- , , , , , ascii 128 - 255, 0 - 127 .
Tio , :
$chars = range(128,255);
:

then you should check the line in question again, people say they use regex, but I really don't think it is necessary
$ string = "check a simple string";
for($s=0;$s<strlen($string);$s++)
{
if(in_array(ord($string[$s]),$chars))
{
//Invalid
}
}
source
share