note 14479 deleted from ref.array.php by jeroen
| From: | jeroen@php.net | Date: | Wed, 01 Aug 2001 20:48:24 +0000 |
| Subject: | note 14479 deleted from ref.array.php by jeroen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16187@lists.php.net to get a copy of this message | ||
If you want to clear the contents of an array but have iterated it some way (and the pointer of the
array is not pointing to the first element), remember to RESET the array before you clear it.
reset($myarray);
$myarray = array();