[nycphp-talk] ${$variable}
Chris Shiflett
shiflett at php.net
Wed Aug 27 15:43:56 EDT 2003
--- Phil Powell <soazine at erols.com> wrote:
> Wait, I'm confused. If a variable is set to 0, then it is also false
> as well, am I right??
You're right. I think my comments were very misleading, after reading them over
again.
I prefer empty() for readability. The fact that it evaluates as false for the
integer 0 is a bit confusing, I agree.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
More information about the talk
mailing list