Zählen von Array-Elementen in PHP
array_count_valuesЗадание 1
Gegeben ist das Array:
php<?php
$arr = ['a', 'b', 'c', 'b', 'a'];
?>
Zählen Sie, wie oft jeder Buchstabe vorkommt.