With the function:
!eregi("[[:digit:]]",$STRING)
I can detect wherever the string submitted contains an English character or not. But if I input "+10", the php doesn't show any error! How can I solve this problem? Thanks a lot!
That eregi just looks if a digit is somewhere in the string. Look at the character type functions
Great! It works now by using !ctype_digit($string) Thanks a lot!🙂