<!DOCTYPE html>
<html>
<body>
<p>The parameter "mode 3" will return a string with all the different characters used. In this example, the characters used in "Hello World!" are:</p>
<?php
$str = "Hello World!";
echo count_chars($str,3);
?>
</body>
</html>