PHP: Recursivity parse php
How i can parse a ObjectArray multinational or ObjectArray Tree with
recursive function and i get each node/cursor?
I'm parser it and create one organized structure, by posteriorly ... work
with it.
My ObjectArray tree is like, for example:
object(stdClass)[248]
'id' => int 0
'type' => string 'root' (length=4)
'related_dropzone_id' => int 0
'related_dropzone_order' => int 0
'options' =>
object(stdClass)[250]
'children' =>
object(stdClass)[249]
'1376112098462' =>
(stdClass)[247]
'id' => string '1376112098462' (length=13)
'type' => string 'section' (length=7)
'related_dropzone_id' => int 0
'related_dropzone_order' => int 0
'dropzones' =>
object(stdClass)[246]
...
'options' =>
object(stdClass)[245]
...
'children' =>
object(stdClass)[244]
...
'1376112118210' =>
object(stdClass)[252]
'id' => string '1376112118210' (length=13)
'type' => string 'section' (length=7)
'related_dropzone_id' => int 0
'related_dropzone_order' => int 1
'dropzones' =>
object(stdClass)[255]
...
'options' =>
object(stdClass)[253]
...
'children' =>
object(stdClass)[254]
...
It's children intro children that contain information valid for my and i
need parse it.
No comments:
Post a Comment