RE: Reg Ex help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aaron,

is_string() will return true even if there are no alphanumeric characters in the variable, even if the variable is empty. My best guess is that is_string() will not work in this case.

Randy Clamons
Systems Programming
Astro-auction.com

> ------------Original Message------------
> From: "Wagner, Aaron" <aaron.wagner@xxxxxxxxxxxxxxxxx>
> To: Ron.Herhuth@xxxxxxxxxxxxxxxxx, php-windows@xxxxxxxxxxxxx
> Date: Thu, Jan-13-2005 1:31 PM
> Subject: RE:  Reg Ex help
>
> couldn't you use 
> 
> is_string ( mixed var )
> 
> aaron
> 
> > -----Original Message-----
> > From: Ron.Herhuth@xxxxxxxxxxxxxxxxx
> > [mailto:Ron.Herhuth@xxxxxxxxxxxxxxxxx]
> > Sent: January 13, 2005 10:18
> > To: php-windows@xxxxxxxxxxxxx
> > Subject:  Reg Ex help
> > 
> > 
> > 
> > I might be an idiot...
> > 
> > I am trying to do a simple check to make sure a string 
> > contains at least
> > an alphanumeric character before I print the string.  How can 
> > I do this?
> > 
> > Ron

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux