Hi ..
$Array = array("a","a","b","dd","v","b","v","a");
how can i get the max duplicated value ?
am angry coz it`s easy and i don`t know how
any idea ?
| SitePoint Sponsor |
Hi ..
$Array = array("a","a","b","dd","v","b","v","a");
how can i get the max duplicated value ?
am angry coz it`s easy and i don`t know how
any idea ?
the result :PHP Code:$i=-1;
foreach ($Array as $Name)
{
++$i;
if($Array[$i] == $Name)
$Num[$Name]++;
}
now how to select the max ?!Code:Array( [a] => 3 [b] => 2 ...etc }
Bookmarks