0 votes
343 views
in PHP by (98.9k points)
edited

 How is the comparison of objects done in PHP?

1 Answer

0 votes
by (98.9k points)
selected by
 
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 ‘===’.

Related questions

0 votes
1 answer 357 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 1.4k views
0 votes
1 answer 438 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 427 views
0 votes
1 answer 405 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

648 users

...