Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
Saving Yourself Time with the Clone Construct
Cloning an object is quite different than it was in PHP4.http://www.talkphp.com/advanced-php-programming/1383-using-clone-construct-clone-object.html
Total Hits: 3134
Total Votes: 38 votes
Average Rating: 3.55 out of 5
Category: PHP/Object Oriented
Description:
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.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 15.79% |
6 |
![]() ![]() |
![]() ![]() 18.42% |
7 |
![]() ![]() ![]() |
![]() ![]() 15.79% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 15.79% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 18.42% |
7 |





15.79%

18.42%

15.79%

15.79%

18.42%