In php, objects are they passed by value or by reference?



In php, objects are they passed by value or by reference?..

Answer / Anuradha Verma

By default, PHP passes objects by reference. This means that if you modify an object inside a function, the original object outside the function will also be modified.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

how we can use lamp.ie installatiion and basic workings.Is it similar to wamp in usage?

1 Answers  


what are the errors and when we get that particular errors.and who will give that errors

3 Answers  


How do I use isdigit function?

1 Answers  


Is php secure?

1 Answers  


Write down the code for save an uploaded file using php?

1 Answers  


what is view?

0 Answers  


Which function gives us the number of affected entries by a query?

1 Answers  


What are the difference between abstract class and interface?

4 Answers  


How do I display php errors?

1 Answers  


how to use between operator when retrieve from database(format-2008-jun-06)

3 Answers  


can we use PGP with PHP?

1 Answers  


Write a program to get lcm of two numbers using php?

1 Answers  


Categories