note 14647 added to function.array.php
| From: | sturgeon at php2 dot chek dot com | Date: | Tue, 07 Aug 2001 20:36:41 +0000 |
| Subject: | note 14647 added to function.array.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16453@lists.php.net to get a copy of this message | ||
if you need to get rid of all of the values of an array really quickly, you can just assign it an
empty list, like so:
$array = array(1,45,3,2); #fill the array
$array = array(); #empty array
http://www.php.net/manual/en/function.array.php