Junior PHP Developer Question:
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 ‘===’.
Previous Question | Next Question |
Tell me what does PEAR stands for? | Tell me how can we display information of a variable and readable by human with PHP? |