--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> One question though, wouldn't it make more sense to have the result be
> either as 0 or 1 (or true or false) instead of blank or 1. I first
> interpret the blank as something is wrong with the script or functions.

I agree that 1 and 0 would be more intuitive. I'm not certain why it is
not like this, but I do have a guess. Because PHP is basically typeless,
and because the string 0 should evaluate to true (it does in C), using 0
as false might cause some problems or at the very least create some
ambiguitity or confusion.

That's a guess anyway.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

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

Reply via email to