Tag Archives: php5

Warning: object references affect XML serialization

Let’s immediately start with a quote I found on php.net: One of the key-point of PHP5 OOP that is often mentioned is that “objects are passed by references by default” This is not completely true. This section rectifies that general thought using some examples. A PHP reference is an alias, which allows two different variables