Releasing Custom Objects resources
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 ?
unset would work or reusing the same variable name
Each time $Object would be the new Object.
$Object = new Object;
Unless code is provided or an exact example is requested I think I'm going to start using psuedo code from now on...
Also, I freelance as well. Inquire within!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)