count_chars (Php 4, Php 5, Php 7, Php 8) count_chars Gibt Informationen zu in einer Zeichenfolge verwendeten Zeichen zurück

<?php
$data = "Two Ts and one F.";

foreach (count_chars($data, 1) as $i => $val) {
   echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n";
}
?>
SAMER SAEID