RE: [PHP] is_alpha_numeric ?

From: Date: Sat, 07 Jul 2001 16:32:55 +0000
Subject: RE: [PHP] is_alpha_numeric ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56645@lists.php.net to get a copy of this message
I missed that part... Thanks. __________John Monfort_________________ _+-----------------------------------+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+___________________________________+- On Sun, 8 Jul 2001, PHPBeginner.com wrote: > yes, you have to enable it: > > --enable-ctype > > ...and, ctype is available only starting from PHP v.4.0.4+, > ...and it is only the experimental family of functions... (this you read on > the site, right?) > > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > maxim@phpbeginner.com > www.phpbeginner.com > > > > > -----Original Message----- > From: John Monfort [mailto:monfort@kahuna.engineering.sdsu.edu] > Sent: Sunday, July 08, 2001 12:59 AM > To: PHPBeginner.com > Cc: Lasse; php-general@lists.php.net > Subject: RE: [PHP] is_alpha_numeric ? > > > > > I tried that, but it didn't work. > > if (ctype_alnum($var)) { > echo "ok"; > }else { > echo "no"; > } > > I got an 'undefined function' error. > php4.0.4pl1 > > > Did I miss something ? > -john > > __________John Monfort_________________ > _+-----------------------------------+_ > P E P I E D E S I G N S > www.pepiedesigns.com > "The world is waiting, are you ready?" > -+___________________________________+- > > On Sat, 7 Jul 2001, PHPBeginner.com wrote: > > > check out ctype (suggested to PHP by me, btw) > > > > php.net/ctype > > > > we have all that. > > > > -Maxim Maletsky > > > > > > > > > > -----Original Message----- > > From: Lasse [mailto:lm@nospam.dk] > > Sent: Saturday, July 07, 2001 7:40 AM > > To: php-general@lists.php.net > > Subject: Re: [PHP] is_alpha_numeric ? > > > > > > > > "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 > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#56645) next »