The value of unset()
Posted: Fri Aug 06, 2004 6:30 am
Hi all
Just want to start a little discussion about unsetting variables in php. I'd like to know your view on when unset($var) should be used...
Everytime your finished using a variable, everytime your finished using a "large" variable or never...
What's the common practise?
Personally I seldom unset variabels. Maybe I want to use the variable later, and has forgotten that somewhere the variable was unset.
I don't take unset() too seriously in other words.
regards tores
Just want to start a little discussion about unsetting variables in php. I'd like to know your view on when unset($var) should be used...
Everytime your finished using a variable, everytime your finished using a "large" variable or never...
What's the common practise?
Personally I seldom unset variabels. Maybe I want to use the variable later, and has forgotten that somewhere the variable was unset.
I don't take unset() too seriously in other words.
regards tores