Arrays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 !!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux