0 votes
126 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 128 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 1.2k views
0 votes
1 answer 209 views
asked Oct 9, 2022 in PHP by MrRam (2.0k points)
0 votes
1 answer 151 views
0 votes
1 answer 166 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!

5.7k questions

5.1k answers

108 comments

554 users

...