RE: [PHP] Re: Classes, instances and NULL

2004-07-29 Thread Michael Sims
Oliver Hitz wrote: > Thank you. I know there is a `===' operator, but to me this doesn't > make sense either. > > class A { } > class B { var $x; } > > It is logical that an instance of `A' is not identical to null. > However, why is an instance of `A' equal (`==' operator) to null, an > instan

Re: [PHP] Re: Classes, instances and NULL

2004-07-29 Thread Oliver Hitz
On 29 Jul 2004, Mehdi Achour wrote: > Hi Oliver, you should test with === instead of == > http://php.net/manual/en/language.operators.comparison.php Thank you. I know there is a `===' operator, but to me this doesn't make sense either. class A { } class B { var $x; } It is logical that an