Re: foreach with null

From: Date: Tue, 25 Oct 2005 15:55:37 +0000
Subject: Re: foreach with null
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-19718@lists.php.net to get a copy of this message
On 25.10.2005 19:39, Ants Aasma wrote:
It currently is equal: $ php -r 'var_dump(null == array()); var_dump((array) null);' bool(true) array(0) { }
No, there aren't equal. Use === and you'll see the difference. -- Wbr, Antony Dovgal

« previous php.internals (#19718) next »