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)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 12:59 AM
To: PHPBeginner.com
Cc: Lasse; [EMAIL PROTECTED]
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:[EMAIL PROTECTED]]
> Sent: Saturday, July 07, 2001 7:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] is_alpha_numeric ?
>
>
>
> "scott [gts]" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to