![]() |
|
#1
|
||||
|
||||
Is it important to UNSET($vars)?I was just wondering...
Is it important to unset() variables and/or arrays in PHP (as soon as I am done with them in a script)? Recently, I've got into this habit (I always thought it would be better for me to do that) but can't find a decent article or discussion on it... Any comments or thoughts, appreciated. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
||||
|
#2
|
||||
|
||||
|
It isn't important as php automatically flushes all of that stuff when the script finishes anyways. The only time you want to unset them if you are not going to use them anymore and don't it to be possible for them to be used later in the script.
|
|
#3
|
||||
|
||||
|
Yes, this is what I read too but I had to read it again when I noticed they were talking about resource variables and not normal ones.
From php manual: Quote:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help Important | mbuali | Computer Hardware Forum | 3 | 01-Sep-2003 05:46 |
| topsites appearing on all the important search engines bar altavista | jrobbio | GIDTopsites™ | 10 | 12-Jan-2003 05:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The