Junior PHP Developer Question:
Download Questions PDF

Tell me how comparison of objects is done in PHP5?

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 Interview Questions And Answers PDF

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?