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
How to join multiple strings into a single string?
How do I see how many pages per session in google analytics?
Is it easy to learn wordpress?
How do you execute a php script from the command line?
What are the environmental variables?
Is php difficult to learn?
What is a composer in PHP?
Tell us what is the difference between session_unregister() and session_unset()?
What is php date function?
What is php string function?
How to randomly retrieve a value from an array?
What is the difference between implode() and explode() in php?
What is constructors and destructors?
What are majic methords in php?
Are react hooks stable?