I need to get the top 5 most listed items out an array .
i have an array of states names, and i need the top 5 most listed states array_unique() doesn’t work because i don’t want to remove them…. i know i will need a for-loop some where im here….
php code:
<?
array(
'Florida', Illinois,New York, Texas, Florida, Alabama,California, Arizona,
'Florida', Illinois,New York, Texas, Florida, Alabama, Florida, Florida, texas.....
)
// now i want to get the top 5 listed within the array....
?>
Related Links