Tell me how comparison of objects is done in php5?
Answer / Pavitra Pratap Singh Deora
In PHP, when comparing objects, the `==` operator performs a type comparison (type juggling), while the `===` operator checks for both type and value equality. To compare objects strictly by their value, you can use the `is_object()` function with `get_class()`: `if ($obj1 instanceof get_class($obj2)) { ... }`
| Is This Answer Correct ? | 0 Yes | 0 No |
What are default session time and path?
What type of inheritance that PHP supports?
15 Answers Webwing Technologies,
What are the characteristics of php?
What are the features of php?
does current version of mysql (myisam) supports foreign keys ?
Explain Parsing and Execution in PHP? Where PHP Engine Return errors?
What is data structure in php?
What is the difference between file_get_contents() and file_put_contents() in php?
What is "print" in php?
How to execute a function in php?
What is the tags in PHP is not a valid way to begin and end a PHP code block?
I have two radio button, i click one radio button display one dropdown box, one text field. and then click another radio button display one text field.so any one give me good idea plz.....i used <div id="" style=display:none> but not work..