Re: Building page based on request?
| From: | Jon Parise | Date: | Mon, 10 Jul 2000 21:53:34 +0000 |
| Subject: | Re: Building page based on request? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5821@lists.php.net to get a copy of this message | ||
On Mon, Jul 10, 2000 at 12:55:46PM -0700, Chris Adams wrote:
> > [ also note !isset() and empty() means the same thing ]
>
> Almost. isset() returns true if the variable has been set. empty()
> returns true if the variable has been set *and* is currently set to
> a value other than '' or 0.
Right. I test for both cases as a rule because there have been
instances where an unset variable in an empty() call will report a
warning (at error_reporting level 15).
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member