count_chars

(PHP 4 >= 4.0.0)

count_chars --  Return information about characters used in a string

Description

mixed count_chars (string string, [mode])

Counts the number of occurrences of every byte-value (0..255) in string and returns it in various ways. The optional parameter Mode default to 0. Depending on mode count_chars() returns one of the following: