Split 1d array into chunks so that row counts never deviate by more than 1 – PHP
I want to split an array into rows as evenly as possible, obeying a minimum count per row constraint so that row counts are as close as possible to the minimum and the difference between different row counts is never…