Comptage des éléments d'un tableau en PHP
Soit le tableau :
<?php
$arr = ['a', 'b', 'c', 'b', 'a'];
?>
Comptez combien de fois chaque lettre apparaît.
Soit le tableau :
<?php
$arr = ['a', 'b', 'c', 'b', 'a'];
?>
Comptez combien de fois chaque lettre apparaît.