PHP Source:
<!DOCTYPE html>
<html>
<body>

<p>The parameter "mode 4" will return a string with all the unused characters. In this example, the characters not used in "Hello World!" are:</p>

<?php
$str = "Hello World!";
echo count_chars($str,4);
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy