RE: [PHP] is_alpha_numeric ?

From: Date: Fri, 06 Jul 2001 19:34:43 +0000
Subject: RE: [PHP] is_alpha_numeric ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56561@lists.php.net to get a copy of this message
you could also use this: function is_alphanum($data) { return preg_match('/^\w+$/', $data); } > -----Original Message----- > From: Steve Werby [mailto:steve-lists@befriend.com] > Sent: Friday, July 06, 2001 3:32 PM > To: John Monfort; php-general@lists.php.net > Subject: Re: [PHP] is_alpha_numeric ? > > > "John Monfort" <monfort@kahuna.sdsu.edu> wrote: > > I'm trying to determine if an argument is alphanumeric. Is there a > > function to do this? > > There may be in the CVS version (would have to check), but there's not in > 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. > > -- > Steve Werby > President, Befriend Internet Services LLC > http://www.befriend.com/ > > > -- > 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 (#56561) next »