Re: is_alpha_numeric ?
| From: | Lasse | Date: | Fri, 06 Jul 2001 22:40:21 +0000 |
| Subject: | Re: is_alpha_numeric ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56583@lists.php.net to get a copy of this message | ||
"scott [gts]" <scott@graphictype.com> wrote in message
news:KFEKLFMNHDILCMFAEKJCKEKJCMAA.scott@graphictype.com...
> you could also use this:
>
> function is_alphanum($data) {
> return preg_match('/^\w+$/', $data);
> }
Watch out though... IIRC \w also includes underscore...
--
Lasse