Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:18Length:2.3 hours
  • Overview
  • Transcript

2.5 Copying vs Cloning Objects

Sometimes, it may be useful to create an object from a class and the copy it a couple of times. In that case, it’s good to know how PHP deals with copying. By default, objects are copied by reference, not by value. That’s all fine and dandy, but what does that mean, exactly?

2.5 Copying vs Cloning Objects

Back to the top