I am stuck... I must be going at this totally the wrong way and thinking about it to much:
my Array:
$arr = array("GAW","GAW","VAT","GF9","GF9","GF9","GF9","GF9","GF9","GF9","GF9","RPR","RPR","RPR");
I want the value that has the most occurrences... which should be "GF9"
I try this:
array_count_values($arr);
sort($arr);
array_keys($arr);
print array_pop($arr); // gives me VAT?
print "$arr[0]"; // gives me the first value?
I'm sure there is a function I have not found yet. Any ideas?