Easier way to delete all entries in an array?
| From: | James E Hicks III | Date: | Thu, 12 Jun 2003 14:13:10 +0000 |
| Subject: | Easier way to delete all entries in an array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151251@lists.php.net to get a copy of this message | ||
There's got to be an easier way, is there?
for ($i=0; $i < count($the_array); $i++){
array_pop($the_array);
}
James E Hicks III
Noland Company
2700 Warwick Blvd
Newport News, VA 23607
757-928-9000 ext 435
jameshicks@noland.com