Re: Easier way to delete all entries in an array?

From: Date: Thu, 12 Jun 2003 15:30:54 +0000
Subject: Re: Easier way to delete all entries in an array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151261@lists.php.net to get a copy of this message
On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks III wrote: >There's got to be an easier way, is there? > >for ($i=0; $i < count($the_array); $i++){ > array_pop($the_array); >} Maybe this: unset( $the_array );

« previous php.general (#151261) next »