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


Please Help Members By Posting Answers For Below Questions

How do you destroy a particular or all Sessions?

760


How to get a random value from a php array?

715


What is the ioncube php loader?

756


What is abstract class php?

682


Write a program to display reverse of any number?

660


What is the use of "ksort" in php?

684


Why is php so popular?

676


What does echo mean in php?

755


How we get ip address of client, previous reference page etc?

706


What is php key?

674


What is the use of mysqli_real_escape_string() function?

675


How is the ternary conditional operator used in php?

684


Tell me what does the initials of php stand for?

722


How come the code works, but does not for two-dimensional array of mine?

681


How send email in php?

691