| How can we compare objects in PHP?
To compare objects in PHP we use "==" operator. And and we can also test that is two objects are instance from the same class and have same attributes and equal values. And we can test if two of objects are referring to same instance of the same class by the use of the identity operator "===". | | |