faqts : Computers : Programming : Languages : PHP : Common Problems : Variables

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 15 people (80%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How long a variable resides in memory, how can i remove it?

Feb 8th, 2002 12:38
Michael Wales, Imran Aziz,


A variable stays in memory as long as a person is viewing that 
particular document. You may pass a variable along by adding 
?varname=value to the end of the URL for a linked file.
You can't delete a variable (and why would you with such a short life?), 
but you can clear it by:
  $var = "";