Optimising PHP - unsetting arrays and objects

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Optimising PHP - unsetting arrays and objects

Post by LonelyProgrammer »

Is there a need to use unset on created objects and arrays to prevent memory leak?

Thanks in advance.
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

Nope, PHP takes care of all garbage collection for you :D
Post Reply