Re: FUNCTIONS

From: Date: Mon, 19 Aug 2002 14:50:46 +0000
Subject: Re: FUNCTIONS
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-113230@lists.php.net to get a copy of this message
yea, but what about varibales in the actual function?? "Met" <met@uberstats.com> wrote in message news:003c01c2479f$ee948c40$6901a8c0@SURVIVAL... > 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 >

« previous php.general (#113230) next »