Re: isset, empty, "" and the like
| From: | Gabor Hojtsy | Date: | Sun, 24 Nov 2002 21:25:53 +0000 |
| Subject: | Re: isset, empty, "" and the like | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969349896@lists.php.net to get a copy of this message | ||
> Yes, interesting indeed. Similar information also exists
> in a few user comments so perhaps it's time to put a table
> like this in the manual :) Appendix or faq? Some
> additions to php_cheat_sheet:
>
> a) Add boolean true to first table
> b) empty() handling of "0" changed in php4
> c) forms only pass strings
> d) When E_NOTICE errors will result
> e) Difference of isset() and array_key_exists()
> in terms of how they treat NULL values.
> f) Add NULL to comparison tables
> g) Briefly mention and/or point to types section
> h) Mention !
> i) Some other stuff no doubt...
Cool :) It would be nice to have all these information
in the manual. IMHO, this may fit in language/variables,
as some of these are core information (like forms only
pass strings)...
> The color changes really help make it clearer and easier
> to read, let's use a similar color scheme instead of the
> &true; and &false; entities.
Well, this may not be too hard to accomplish, but I don't
know how to do it right now...
Goba