Source Code:
(back to article)
<?php $colors = array("red", "green", "blue", "red", "yellow", "blue"); print_r(array_count_values($colors)); ?>
Result:
Report an issue