> > If you set $qty=0; then $qty has no value.
> Of course it has a value.  

No it doesn't have a value.
PHP interprets 0 as null.

A very easy way for you to check:


if(!$value) printf("$value doesn't have a value (it didn't even print 

if($value) printf("$value does have a value if I put "0" instead of 0<br>\n");

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