thagg.com/intotherude
tags
sign in
thagg.com/home
Tweet
php
tellen
print
waardes in array tellen
$array = array(1,2,3,3,1,5,6);
$count = array_count_values($array);
print_r($count);
OUTPUT:
Array (
[1] => 2
[2] => 1
[3] => 2
[5] => 1
[6] => 1
)