note 14479 added to ref.array.php
| From: | sauli at tampereDONTWRITETHIS dot net | Date: | Wed, 01 Aug 2001 18:29:50 +0000 |
| Subject: | note 14479 added to ref.array.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16184@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();
http://www.php.net/manual/en/ref.array.php