|
Posted by Richard Lynch on 05/02/05 04:09
On Sun, May 1, 2005 1:47 pm, Gabriel Birke said:
> Is empty() some kind of special function where the validity
> of indices is not checked?
Bingo!
That's rather the whole point of empty and isset. :-)
The behaviour of empty has changed over time, with various releases.
isset seems more "stable" in that regard, so I prefer to use that one.
Also, to me, philosophically and from an application logic perspective, I
generally want to do something different when some variable is not set at
all, as opposed to having "" in it. But that's maybe just me. :-)
YMMV
--
Like Music?
http://l-i-e.com/artists.htm
[Back to original message]
|