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

What is the use of strip_tags() method?

0 Answers  


if i give Limit for mysql query through php command line script like this for ex. $limit=500; $total_items = 1500; for($start=0;$start<$total_items;){ $command = "/usr/bin/php -q /home/sitename/public_html/admin/feedmanager/test.php feedid ".$_GET['feedid']." start ".$start." end ".$limit ; $start = $start+$limit; $command_result = system($command); } so it's execute command for 3 times so it give limit to sql query but if i have 27000 data so it takes long time? so my question is that is that any way from php command line script that i can use for collect all the data at once?

0 Answers  


what mode to use when creating dirs with mkdir?

1 Answers  


What are examples of independent and dependent variables?

0 Answers  


How do you count numbers in php?

0 Answers  


How is traits used in php?

0 Answers  


How to turn on the session support?

0 Answers  


What are the disadvantages of php?

0 Answers  


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

0 Answers  


What does $_cookie mean?

0 Answers  


How failures in execution are handled with include() and require() functions?

0 Answers  


Explain about error handling in php?

1 Answers   INDUS, Life Infotech, Yahoo,


Categories