Suppose we have an array:
$b = ['a', 'b', 'c',];
It is clear how to make a maximum of a two-dimensional array of it, pass through a cycle
for($x = 0; $x < 5; $x++) { $q[$x] = ['$b[$x]' => ' ']; } Is it possible to make a multi-dimensional array of it, arrays nested into each other:
$a = ['a' => [ 'd' => [ 'c' => '']]];