Home »

How comparison of objects is done in PHP5?

Question ListCategory: PHPHow comparison of objects is done in PHP5?
milleranthony7 author asked 9 years ago
1 Answers
jully882 author answered 8 years ago

We use the operator ‘==’ to test is two object are instanced from the same class and have same attributes and equal values. We can test if two object are refering to the same instance of the same class by the use of the identity operator ‘===’.

Please login or Register to Submit Answer