array_count_values
Diberikan array:
<?php $arr = ['a', 'b', 'c', 'b', 'a']; ?>
Hitunglah berapa kali setiap huruf muncul.