in PHP by

How is the comparison of objects done in PHP?

1 Answer

0 votes
by

We use the operator '==' to test is two objects are instanced from the same class and have same attributes and equal values. We can test if two objects are referring to the same instance of the same class by the use of the identity operator '==='.

...