Data will be sorted based on newlines.


$result rows. alphabetized.

"; $duplicates=(array_count_values($data)); $data=implode("
",$data); print $data;echo"

The number of times items in the list show up. sorted by frequency.

"; asort($duplicates); foreach($duplicates as $key => $value) { echo "$value $key
"; } ?>