php: when need to use unset() function -


<?php $str = 'hello world!'; echo $str; unset($str); ?> 

question:

when need use unset()? above script, think not necessary use it. wonder in situation need use it?

i use when deleting sessions...

unset($_session['user']); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -