hey all,
I have a quite simple problem that i dont get at all.. in a function i add strings to a array ($theresult[] = $str)
the code below should display a list of all unique strings with the total behind it.. but it gives me a error (invalid argument for foreach() )
$finalone = ksort(array_count_values($theresult));
foreach($finalone as $key=>$value)
{
print("$key: $value<BR>\n");
}
Anyone can help me?!
Jordy