Why not use array_chunk on an array of your results? Can be done in one line.
On 8/7/07, Dan Rossi <[EMAIL PROTECTED]> wrote:
> Hi i was wondering if there was any functionality yet for paging with
> Zend_Db. I was also wondering if there was a way to have these paged
> results able to be split into columns of 2 to 3 columns per row when
> fetchAll is called ? Currently I have to do this which seem a bit clunky
> to me
>
> $cols = 2;
> $loop = ceil(count($results) / $cols);
> $arr = array();
> for ($j=0;$j <= $loop;$j++) {
> $arr[$j] = array_slice($results,$i,$cols);
> $i = $i + $cols;
> }
>