comparison of objects in php5

It is for static page, dynamic page, website, SEO, performance and other web development discussion
Joshi jahanvi

comparison of objects in php5

Postby Joshi jahanvi » Thu Oct 30, 2014 5:12 pm

How comparison of objects is done in PHP5?


sonall gajera

Re: comparison of objects in php5

Postby sonall gajera » Thu Jul 09, 2015 5:59 am

Comparing Objects

When using the comparison operator (==), object variables are compared in a simple manner, namely: Two object instances are equal if they have the same attributes and values, and are instances of the same class.
When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class.


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 3 guests