Código PHP:
Array
(
[name] => animales
[sub] => Array
(
[0] => Array
(
[name] => invertebrados
[sub] => Array
(
[0] => Array
(
[name] => moluscos
[leaf] => 1
)
[1] => Array
(
[name] => insectos
[sub] => Array
(
[0] => Array
(
[name] => mantis
[leaf] => 1
)
)
)
)
)
[1] => Array
(
[name] => vertebrados
[sub] => Array
(
[0] => Array
(
[name] => mamiferos
[sub] => Array
(
[0] => Array
(
[name] => tigre
[leaf] => 1
)
[1] => Array
(
[name] => caballo
[leaf] => 1
)
)
)
)
)
)
)
Ya lo pude recorrer con una función recursiva, el problema es a la hora de formar el html. Alguien me podría ayudar a formar el html (Listas)