Re: foreach behavior and error suppression (@foo)
>> What looks better and is easier to read?:
For me - the first one. Go figure what that @ is about. Also, 'if' allows
you for 'else'.
>> it. But, making foreach threat NULL variables as empty arrays, would
>> be a goof thing IMO.
Maybe it is worth to demote this warning to E_NOTICE? I personally don't
have a strong opinion on this.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
Thread (9 messages)