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