I have a custom object that i am instantiating repeatedly in a for loop. With each loop, the object is instantiated with different values.
I want to make sure that i don't have extra memory resources being used for past objects. Will using the unset() method on objects at the end of each loop cycle serve my needs ?
Or, will the php server be smart enough to know that i am not going to use those objects created from previous loop iterations ?