public function hashString($text)
    {
        $charList = str_split($text);
        $chars = array_fill_keys( $charList, 0);
        foreach($charList as $char) { 
            $chars[$char]++;
        }
        return $chars;
    }
public function hashString($text)
    {
        $charList = str_split($text);
        $chars = array_fill_keys( $charList, 0);
        foreach($charList as $char) { 
            $chars[$char]++;
        }
        return $chars;
    }
public function hashString ( $ text ) { $ charList = str_split ( $ text ) ; $ chars = array_fill_keys ( $ charList , 0 ) ; foreach ( $ charList as $ char ) { $ chars [ $ char ] ++ ; } return $ chars ; }
Returns a sorted hashed array with the frequency counts per character
@param string $text
Returns a sorted hashed array with the frequency counts per character