How important is it to unset variables in PHP?

Posted by dd0x on Stack Overflow See other posts from Stack Overflow or by dd0x
Published on 2010-04-11T16:14:15Z Indexed on 2010/04/11 16:23 UTC
Read the original article Hit count: 211

Filed under:
|

I am somewhat new to PHP and I am wondering: How important is it to unset variables in PHP? I know in languages like C we free the allocated memory to prevent leaks, etc. By using unset on variables when I am done with them, will this significantly increase performance of my applications?

Also is there a benchmark anywhere that compares difference between using unset and not using unset?

© Stack Overflow or respective owner

Related posts about php

Related posts about memory