Question: are php objects passed by reference?
Answer: Objects and references ¶ One of the key-points of PHP 5 OOP that is often mentioned is that "objects are passed by references by default". ... A PHP reference is an alias, which allows two different variables to write to the same value. As of PHP 5, an object variable doesn't contain the object itself as value anymore.