<?php $a = ['a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'a10']; $b = ['b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'b10']; $c = ['c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'c10']; var_export( array_map( fn(...$cols) => array_merge(...$cols), ...array_map( fn($row) => array_chunk($row, 2), [$a, $b, $c] ) ) );
You have javascript disabled. You will not be able to edit any code.