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 instance of `A' is not identical to null. However,
why is an instance of `A' equal (`==' operator) to null, an instance of
`B' not? Do objects automatically evaluate to their associative array
representation? Is this intended behaviour?
Thanks
Oliver
pgpA5YT2eDqch.pgp
Description: PGP signature

