What is happening in the following code
$objA = new A(); // A is a class
$objB = $objA;
Answer Posted / puneet bhatt
variable $objA and varable $objB contains the same value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is difference Between PHP 5 and 7?
How can we determine whether a php variable is an instantiated object of a certain class?
Write a program to find the factorial of a number in php?
What is composer install?
What is session_start () in php?
Where is session value stored php?
Which is not a php magic constant?
What is difference between web service and api?
Explain converting an object?
How to get a random value from a php array?
What is needed to be able to use image function?
How does session work in php?
What is meant by ‘passing the variable by value and reference' in php?
How are sessions maintained?
What are constructor and destructor in PHP?