View Single Post
Old 11-16-2008, 06:56 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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.
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
codefreek (11-16-2008)