Re: foreach behavior and error suppression (@foo)

From: Date: Tue, 03 Jul 2001 08:54:44 +0000
Subject: Re: foreach behavior and error suppression (@foo)
References: 1  Groups: php.dev php.dev php.dev 
Request: Send a blank email to php-dev+get-59295@lists.php.net to get a copy of this message
>> 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)

« previous php.dev (#59295) next »