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 many different types of messages available in php?

0 Answers  


Why we use get in php?

0 Answers  


What are the steps for the payment gateway processing?

0 Answers  


Why print_r is used in php?

0 Answers  


What are super global variables in php?

0 Answers  


What is print_r?

0 Answers  


What is php stack?

0 Answers  


How can you declare a constant variable in php?

0 Answers  


Explain the casts allowed in PHP?

0 Answers  


Is php a low level language?

0 Answers  


HOW we can use css

3 Answers   ConSim, IPsoft,


How to register a variable in PHP session?

0 Answers  


Categories