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

What are the common uses of php?

1175


What is a comment in php?

1128


How many days will it take to learn php?

1108


How to get the total number of values in an array?

1046


Tell me in php, objects are they passed by value or by reference?

1011


What is the function in PHP do not return a timestamp?

1070


Difference between array_combine and array_merge?

1256


What is json php?

1065


What is better .net or php?

1055


What exactly is PHP?

1060


What is the interface in php?

1091


How do you end a function in python?

1049


What is php dependency injection?

978


Which is better #define or enum?

1012


How to read and display a HTML source from the website url?

1040