Re: Validating form field text input to be a specificvariable type
| From: | Chris Shiflett | Date: | Wed, 07 Apr 2004 21:44:58 +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-182727@lists.php.net to get a copy of this message | ||
--- 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/