Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to join multiple strings into a single string?

904


How do I see how many pages per session in google analytics?

947


Is it easy to learn wordpress?

921


How do you execute a php script from the command line?

978


What are the environmental variables?

965


Is php difficult to learn?

883


What is a composer in PHP?

891


Tell us what is the difference between session_unregister() and session_unset()?

954


What is php date function?

1030


What is php string function?

947


How to randomly retrieve a value from an array?

1028


What is the difference between implode() and explode() in php?

955


What is constructors and destructors?

882


What are majic methords in php?

1033


Are react hooks stable?

885