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;

Answers were Sorted based on User's Feedback



What is happening in the following code $objA = new A(); // A is a class $objB = $objA;..

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

What is happening in the following code $objA = new A(); // A is a class $objB = $objA;..

Answer / manoj kumar

This is a object cloning in php5.

Is This Answer Correct ?    1 Yes 2 No

What is happening in the following code $objA = new A(); // A is a class $objB = $objA;..

Answer / puneet bhatt

variable $objA and varable $objB contains the same value.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More PHP Interview Questions

How can we get the browser properties using PHP?

4 Answers   Google, Pollux Softech,


What is meant by nl2br()?

4 Answers   Rushmore Consultancy,


Whether it is possible to share a single instance of a memcache between multiple php projects?

0 Answers  


What is $_ request?

0 Answers  


How to write a program to make chess?

0 Answers  


Is php coding easy?

0 Answers  


What are interfaces in php?

0 Answers  


What is a php array?

0 Answers  


Why many companies are switching their current business language to php? Where php basically used?

0 Answers  


What is the difference between == and === in php?

0 Answers  


Tell me how to execute an sql query? How to fetch its result?

0 Answers  


What is the function mysql_pconnect() usefull for?

0 Answers  


Categories