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\');
Use array_count_values and get the key of the item:
array_count_values
Output:
orange