RE: [PHP-DB] how to clear the array

2002-11-21 Thread Hutchins, Richard
nt: Thursday, November 21, 2002 8:30 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-DB] how to clear the array > > > If you have a variable: $myArray = array(); > > Can't you clear it by saying unset($myArray)? According to the > documentation, it looks like y

RE: [PHP-DB] how to clear the array

2002-11-21 Thread Hutchins, Richard
; To: karthikeyan; [EMAIL PROTECTED] > Subject: Re: [PHP-DB] how to clear the array > > > How about: > > $my_array = array(); // clears the whole array (and makes a new one) > > Or: > > $my_array[$i] = null; // clears a single entry in the array > at index $i &g

Re: [PHP-DB] how to clear the array

2002-11-20 Thread Dave Smith
How about: $my_array = array(); // clears the whole array (and makes a new one) Or: $my_array[$i] = null; // clears a single entry in the array at index $i --Dave karthikeyan wrote: How to clear an array? i used unset. But it destroys the array property of the variablke itself. I just need t