Junior PHP Developer Question:

Tell me how comparison of objects is done in PHP5?

Tweet Share WhatsApp

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 ‘===’.

Download Junior PHP Developer PDF Read All 161 Junior PHP Developer Questions
Previous QuestionNext Question
Tell me what does PEAR stands for?Tell me how can we display information of a variable and readable by human with PHP?