Red Bridge Internet is a San Francisco WordPress Consulting firm specializing in WordPress websites and WordPress Plugin Development. We're the ones you have been searching for.

ctype_alnum

You are browsing the search results for "ctype_alnum"

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:]]/’, ”, $string)) ) echo “stringy baddy” That’s about it. Funny thing is that it takes [...]