[PHPTAL] Recursive Output

Werner lists at mollentze.co.za
Fri Jul 13 08:15:20 CEST 2007


Hi,

Is there any known way to handle the needed recursive output of nested 
objects/arrays?

For example, suppose you have a Menu object that has an Items properties 
(array of items) and it can also have another Menu object as its 
ChildMenu property. Is it possible to output all menu items without 
knowing the nesting (depth) levels beforehand?

Thanks for your time,
Werner



More information about the PHPTAL mailing list