<?php $m = 3; $n = 4; $x = array_map( function () use ($m) { return array_fill(0, $m, 0); }, range(1, $n) ); print_r($x);
You have javascript disabled. You will not be able to edit any code.