Sr. PHP Programmer Question:
Are objects in PHP 5 passed by value or reference?
Answer:
This is basically a trick questions. To understand how they are passed you need to understand how objects are instantiated.
Previous Question | Next Question |
How will you retrieve source line using Exception class in PHP when error occured? | What is the difference between $var and $$var? |