Answers

Question and Answer:

  Home  Junior PHP Developer

⟩ Tell me how comparison of objects is done in PHP5?

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 ‘===’.

 139 views

More Questions for you: