I'm having trouble to make a tree.
<?php
$x = [];
for($i=0;$i<5;$i++){
//What I need to do?
}
print_r($x);
I would like to get an Output like this:
Array
(
[0] => Array
(
[1] => Array
(
[2] => Array
(
[3] => Array
(
[4] =>
)
)
)
)
)
Please, guide me how to do that?