Sr. PHP Programmer Question:
Download Questions PDF

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.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you retrieve source line using Exception class in PHP when error occured?What is the difference between $var and $$var?