Re: Sorting an array

From: Date: Sat, 15 Sep 2001 09:37:30 +0000
Subject: Re: Sorting an array
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-67499@lists.php.net to get a copy of this message
On Thu, 13 Sep 2001 11:10:03 +0200 impersonator of elias_bachaalany@yahoo.com (_lallous) planted &I saw in php.general: >here's your script, > .. >Kill 'em All >The Wall"; > >$mem = split("\n", $mem); Explode() is less expensive then split(), as long as you don't use regexp, which is the case here, and (from the first glance without improvement attempts:) you missed reset() of array before the while(list() each()) structure. .. >var_dump($arr2); This ^one^ is a good choice:) .. i leonid http://nux.home.dk3.com

« previous php.general (#67499) next »