mixed count_chars ( string str [, int mode] ) returns an array containing the letters used in that string and how many times each letter was used. : count_chars « String « PHP






mixed count_chars ( string str [, int mode] ) returns an array containing the letters used in that string and how many times each letter was used.

 
<?
    $str = "This is a test, only a test, and nothing but a test.";
    $a = count_chars($str, 1);
    print_r($a);
?>
  
  








Related examples in the same category

1.count_chars.php