note 84489 added to function.array-count-values
| From: | php at wallbash dot com | Date: | Wed, 16 Jul 2008 15:18:48 +0000 |
| Subject: | note 84489 added to function.array-count-values | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141568@lists.php.net to get a copy of this message | ||
In reply to: Robert K S 21-Jun-2008 06:19
The Array doesn't get sorted in any way
$test = array(1,1,2,2,2,2,3);
var_dump(array_count_values($test));
array(3) {
[1]=>
int(2)
[2]=>
int(4)
[3]=>
int(1)
}
it just in the order the entries in the original array are.
----
Server IP: 212.124.37.9
Probable Submitter: 213.23.255.127
----
Manual Page -- http://www.php.net/manual/en/function.array-count-values.php
Edit -- https://master.php.net/note/edit/84489
Del: integrated -- https://master.php.net/note/delete/84489/integrated
Del: useless -- https://master.php.net/note/delete/84489/useless
Del: bad code -- https://master.php.net/note/delete/84489/bad+code
Del: spam -- https://master.php.net/note/delete/84489/spam
Del: non-english -- https://master.php.net/note/delete/84489/non-english
Del: in docs -- https://master.php.net/note/delete/84489/in+docs
Del: other reasons-- https://master.php.net/note/delete/84489
Reject -- https://master.php.net/note/reject/84489
Search -- https://master.php.net/manage/user-notes.php