Tuesday, June 23, 2009

Identity in PHP4 and PHP5

The Bible says:

In PHP4 two object instances are equal if they have the same attributes and values, and are instances of the same class.
In PHP5 when using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class.

No comments:

Post a Comment