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