- chr: documentation ( source)
- count_chars: documentation ( source)
<?php
$data = "ejIjSS3Fh5GSYG3hALUII53AeIR55ej3LeeAeSjReS5jRjeeG3GL5hLShhFS5h5GUAheRISFSO5IOIIAGFGGAS3eh5h5FjLe33Ueje3h35jIjjhj5L5j53A3";
$a=(count_chars($data, 1));
foreach ($a as $i => $val) {
echo "There were $val instance(s) of \"" , chr($i) , "\" in the string.\n";
}
?>