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 / 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

What is difference Between PHP 5 and 7?

1114


How can we determine whether a php variable is an instantiated object of a certain class?

949


Write a program to find the factorial of a number in php?

994


What is composer install?

1057


What is session_start () in php?

987


Where is session value stored php?

1026


Which is not a php magic constant?

1065


What is difference between web service and api?

1048


Explain converting an object?

1017


How to get a random value from a php array?

1002


What is needed to be able to use image function?

1010


How does session work in php?

1011


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

1004


How are sessions maintained?

941


What are constructor and destructor in PHP?

1110