I have an array of strings and I am looking for a way to find the most common string in the array.
$stuff = array(\'orange\',\'banana\', \'apples\',\'orange\');
$c = array_count_values($stuff); $val = array_search(max($c), $c);