<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>
$str = "Hello World!";
echo count_chars($str,3);
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_count_chars by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:05 GMT -->
</html>