Log in Register

Login to your account

Username
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name
Username
Password *
Verify password *
Email *
Verify email *
Phone *
City
Country *
1.jpg

0


How comparison of objects is done in PHP5?


Submitted by propayptoplen On Saturday, 05 September 2015.

Category: PHP Tags: PHP interview questions and answers for freshers


Question

How comparison of objects is done in PHP5?

1 Answers.
 

0


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 '==='.
Submitted by gizigmaRit On Saturday, 05 September 2015
Answer :-
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 '==='.

1.jpg
Go to top