Best Tutorials website


Advanced PHP: Saving Yourself Time with the Clone Construct!

Advanced PHP: Saving Yourself Time with the Clone Construct!

Cloning an object is quite different than it was in PHP4. In PHP4 you simply assigned the object to a new object and it would clone it verbatim. With the release of PHP5, things got a little more complex but a lot more flexible. PHP5 offers the clone construct along with a magic method to control the cloning process.




Views: 604 | Rating star | by Marry




View this tutorial
Broken link Report broken link?