SUMMARY: Most frequently used words

From: Date: Mon, 21 Jan 2008 03:45:18 +0000
Subject: SUMMARY: Most frequently used words
Groups: php.db 
Request: Send a blank email to php-db+get-44532@lists.php.net to get a copy of this message
Thank you for you help, specially to Chris that gives me a clue to solve it. The solution was: // store in str_wordlist all different phrases for($i=0; $i<count($arr_phrase); $arr_phrase) { $str_wordlist .= " ".$arr_phrase[$i]; } // store in hash_frequencywords the counting values $hash_frequencywords = array_count_values(explode(' ',trim($str_wordlist))); // descendent sort based on values arsort($hash_frequencywords); // store the 20 most frequently words $arr_20mostusedwords = array_slice(array_keys($hash_frequencywords),0,20); IHTH, ,_,
 (O,O)   J. Alejandro Ceballos Z.      buzon@alejandro.ceballos.info
( ) -"-"-----------------------------------------------------------------
     http://alejandro.ceballos.info        movil: 33.1411.6079
Atentamente, "Felicidad no es hacer lo que uno quiere sino querer lo que uno hace." -- Jean Paul Sartre ,_,
 (O,O)   J. Alejandro Ceballos Z.      buzon@alejandro.ceballos.info
( ) -"-"-----------------------------------------------------------------
     http://alejandro.ceballos.info        movil: 33.1411.6079


« previous php.db (#44532) next »