Log in to upvote 0 Log in to downvote How is the comparison of objects done in PHP? How is the comparison of objects done in PHP? Doubtly Asked 9 Apr 2022 Student doubt Save WhatsApp Report Sign in to comment
Log in to upvote 0 Log in to downvote Best answer 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 ‘===’. Doubtly · 9 Apr 2022 Report Was this answer helpful? Thanks for the feedback. Sign up free to save answers and ask your own doubts Yes No Sign in to comment