<?php $input = [ [1], [2], [3], [4], [5], ]; $out = array_chunk($input, 2); var_dump($out);
You have javascript disabled. You will not be able to edit any code.