Sr. PHP Programmer Question:

Are objects in PHP 5 passed by value or reference?

Tweet Share WhatsApp

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 PDF Read All 202 Senior PHP Programmer Questions
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?