RE: [PHP] FUNCTIONS
| From: | MET | Date: | Mon, 19 Aug 2002 16:46:04 +0000 |
| Subject: | RE: [PHP] FUNCTIONS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113229@lists.php.net to get a copy of this message | ||
In the top of the loop, before you set the variables from the database
do this.
unset($variable);
OR
$variable = "";
Either will do.
~ Matthew
-----Original Message-----
From: Georgie Casey [mailto:georgie@brooksvideo.com]
Sent: Monday, August 19, 2002 10:30 AM
To: php-general@lists.php.net
Subject: [PHP] FUNCTIONS
i wrote a function do write a file for me on info taken from a db, and
wrote a script with a for loop going through every row in the db, and
calling the function. so the function is called about 200 times. but i'm
getting weird results, the files are corrupted. its grand when i just go
one at a time. so i'm assuming variable values must have been left set
from the las for loop. so how do i clear ALL variables in the function??
TANX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php