I know I can use a php array but that wasn't the question!!! And no it
wouldn't be simpler, certainly for my purpose. The tree structure I need to
build is much bigger and much more complex than the example I gave below, so
using a normal array is simply not an option. Besides, the tree structure
n
Why cannot you store it in the file as array and just include it.
Simpler and much faster
Rishabh Gupta wrote:
Hi all,
I want to write a parser that would read a menu structure in a text
file, parse it and then turn that into an array structure. The menu
structure would use brackets to repre
Hi all,
I want to write a parser that would read a menu structure in a text
file, parse it and then turn that into an array structure. The menu
structure would use brackets to represent a new submenu and for each item in
the menu there would be some extra properties. EG:
Root
(
Sub1
(
3 matches
Mail list logo