Vergus Lee
New member
ASCII code that is less than 65 (A)? php question: how to check if a string contains ANY of characters with at least one an ASCII code that is less than 65 (which corresponds to symbol A)?
For example,
Char code
BACKSPACE 8
(A) 65
(B) 66
(C) 67
So, how to check if $str contains ANY symbol with a code that is less than 65?
For example
$str1="BCDEF" //OK
$str2="ABdzefe[fs^dgs^^^d{{{f" //OK, because all symbols are >64
$str3="@ABCDEFGHIJKLmnoPQrs"//not OK, contains char(64)=="@"
$str4="!!!!ABCDEFGHIJKLmnoPQrs"//not OK, contains char(33)=="!"
Thank you.
For example,
Char code
BACKSPACE 8
(A) 65
(B) 66
(C) 67
So, how to check if $str contains ANY symbol with a code that is less than 65?
For example
$str1="BCDEF" //OK
$str2="ABdzefe[fs^dgs^^^d{{{f" //OK, because all symbols are >64
$str3="@ABCDEFGHIJKLmnoPQrs"//not OK, contains char(64)=="@"
$str4="!!!!ABCDEFGHIJKLmnoPQrs"//not OK, contains char(33)=="!"
Thank you.