you need to break the string of numbers up into an array of numbers, perhaps with [man]split[/man] or [man]preg_split[/man]
at this point you can apply the [man]array_count_values[/man] function
then you simply need to choose the highest value(s) in that array