$maxDimension = 10;$vector = array();for ($c = 0; $c < $maxDimension; $c++) { $vector[] = '';}$vectorFinal = array_fill(0, $maxDimension, $vector);