Hi
I would like to determine if a space or any characted except a-z or 1-9 is in a variable.
Can some one please tell me how I can do this.
Thanks in advance 🙂
if (preg_match("/[^a-z1-9]/", $var)) {
Though I wonder if you meant:
if (preg_match("/[^a-z0-9]/i", $var)) {