Re: Distinct Items in an Array

From: Date: Wed, 03 Apr 2002 10:21:23 +0000
Subject: Re: Distinct Items in an Array
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-144354@lists.php.net to get a copy of this message
I used the example file you gave me: 16-Apr-03,7.99,8.33,7.97,8,709900 15-Apr-03,7.62,7.95,7.62,7.95,971300 14-Apr-03,7.4,7.85,7.35,7.75,434700 31-Mar-03,7.24,7.37,7.1,7.1,440600 28-Mar-03,7.34,7.42,7.28,7.3,302000 27-Mar-03,7.41,7.49,7.24,7.33,356400 26-Mar-03,7.55,7.55,7.15,7.41,394300 25-Mar-03,7.2,7.6,7.11,7.6,292800 With the script which I gave you. And recieved this output: Apr -> 3 Mar -> 5 Array ( [0] => Apr [1] => [2] => [3] => Mar [4] => [5] => [6] => [7] => ) April = 3 in total, 1 with "Apr" followed by 2 with "null." March = 5 in total, 1 with "Mar" followed by 4 with "null." Is this not correct?

« previous php.general (#144354) next »