What is happening in the following code
$objA = new A(); // A is a class
$objB = $objA;
Answer Posted / prakash
The object variable $objA and $objB is contains the same
value. The $objA is get the value and to assign the value
to $objB. So both are contains the same value in the
program.
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
Tell me what are the functions to be used to get the image's properties (size, width and height)?
What is mvc? Why its been used?
Write a program to display reverse of any number?
What does type casting mean in php? Explain with an example?
Do while loops php?
Do I need apache for php?
Which is not a php magic constant?
What is meant by ‘passing the variable by value and reference' in php?
Why ide is recommended for use while programming with php?
How do I escape data before storing it in the database?
What are the final class and final method?
Tell me what is the use of the function htmlentities?
Do you know what's the difference between __sleep and __wakeup?
How to assigning a new character in a string using php?
What is exception handling in php?