I've got an XML-file which can contain different values and keys. I manage to parse it and print it out, but I'd prefer to have a dynamic array. And I don't want to take it the hard way with xx loops and stuff. And if evals shouldn't be the way
either...
I don't know if the criterias I've given makes it impossible, but if I could answer that question I wouldn't have a reason to ask at all ;-)
Ola St
Example:
node1
node1.2.a=3
node1.2.b='test'
node1.2.b.1='foo'
node1.2.b.1.2=10
node2
node1.2.a=12
node1.2.a.1='bar'
node1.2.a.2='something'
should be an array
like this
$array[node1][node1.2.a]=3
..
$array[node2][node1.2.a][node1.2.a.2]='something'
etc