RE: [PHP] Easier way to delete all entries in an array?
| From: | James E Hicks III | Date: | Thu, 12 Jun 2003 15:47:24 +0000 |
| Subject: | RE: [PHP] Easier way to delete all entries in an array? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151265@lists.php.net to get a copy of this message | ||
The following has solved my problem. Thanks to all who helped.
$the_array=array();
-----Original Message-----
From: Chris Hayes [mailto:chayes@antenna.nl]
Sent: Thursday, June 12, 2003 10:14 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Easier way to delete all entries in an array?
At 16:13 12-6-03, you wrote:
>There's got to be an easier way, is there?
>
>for ($i=0; $i < count($the_array); $i++){
> array_pop($the_array);
>}
$the_array=array(); ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php