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

Tell me what are the functions to be used to get the image's properties (size, width and height)?

1028


What is mvc? Why its been used?

937


Write a program to display reverse of any number?

897


What does type casting mean in php? Explain with an example?

960


Do while loops php?

964


Do I need apache for php?

1063


Which is not a php magic constant?

1045


What is meant by ‘passing the variable by value and reference' in php?

979


Why ide is recommended for use while programming with php?

911


How do I escape data before storing it in the database?

976


What are the final class and final method?

1009


Tell me what is the use of the function htmlentities?

930


Do you know what's the difference between __sleep and __wakeup?

990


How to assigning a new character in a string using php?

1163


What is exception handling in php?

1595