PHP ctype_alnum to Check Alpha Numeric Characters
A function of PHP’s; ctype_alnum can be used to test a string for alpha numeric characters. It will count a space as non-alphanumeric (which is right), so you can use it like so: $string = “test !ng”; if ( !ctype_alnum(preg_replace(‘/[[:space:]]/’, … Read More