<html>
<body>
$str = "PHP is pretty fun!!";
$strArray = count_chars($str,1);
foreach ($strArray as $key=>$value)
{
echo "The character <b>'".chr($key)."'</b> was found $value time(s)<br>";
}
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_count_chars4 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:05 GMT -->
</html>