Arrays
| From: | virtualsoftware at gmail dot com | Date: | Tue, 12 Jul 2005 11:34:34 +0000 |
| Subject: | Arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218531@lists.php.net to get a copy of this message | ||
Hi,
How can i destroy an array?
I mean i have a loop and for each new value in the loop i want to destroy the array. Something like
that:
while($row = mysql_fetch_array($result))
{
$product[] = $product_id;
// some code here
}
I've tried this but doesn't work
while($row = mysql_fetch_array($result))
{
$product = array();
$product[] = $product_id;
// some code here
}
Any help would be appreciated !!