Re: Validating form field text input to be a specificvariable type
| From: | William Lovaton | Date: | Wed, 07 Apr 2004 22:08:39 +0000 |
| Subject: | Re: Validating form field text input to be a specificvariable type | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182733@lists.php.net to get a copy of this message | ||
Red, Chris,
Good advice, I rarely have to use it, though.
-William
El mi? 07-04-2004 a las 16:44, Chris Shiflett escribió:
> --- William Lovaton <williama_lovaton@coomeva.com.co> wrote:
> > Yeah, sometimes this is an annoying problem with PHP. Somehow, "",
> > null, 0 and "0" is the same thing.
>
> You can always use === if you don't want it to cast.
>
> Chris
>
> =====
> Chris Shiflett - http://shiflett.org/
>
> PHP Security - O'Reilly
> Coming Fall 2004
> HTTP Developer's Handbook - Sams
> http://httphandbook.org/
> PHP Community Site
> http://phpcommunity.org/