11-16-2008, 06:56 PM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
In short: yes, no.
Class instances are assigned by reference in PHP5 meaning that any changes, even after the assignment, are reflected wherever that instance is used. If you want to create a copy, use clone.
|
|
|
|