Mode - maximiliamus/weby-sloth GitHub Wiki
Calculates the mode which is the value that appears most often in a column.
$sloth = Sloth::from($data)
->group('foo', 'baz')
->mode();$sloth->print();
foo baz one 1 two 4
print_r($sloth->fetch());
Array
(
[0] => Array
(
[foo] => one
[baz] => 1
)
[1] => Array
(
[foo] => two
[baz] => 4
)
)