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
What are the common uses of php?
What is a comment in php?
How many days will it take to learn php?
How to get the total number of values in an array?
Tell me in php, objects are they passed by value or by reference?
What is the function in PHP do not return a timestamp?
Difference between array_combine and array_merge?
What is json php?
What is better .net or php?
What exactly is PHP?
What is the interface in php?
How do you end a function in python?
What is php dependency injection?
Which is better #define or enum?
How to read and display a HTML source from the website url?