If you execute the following statement, you'll see that the object graph is being preserved correctly in PHP:
There is a bug in your code which is preventing it from displaying the graph. The corrected line is shown below:
Code:
ftr_dump_nav( $mynav->children[ $i ], $level + 1 );
Take care,
- Mark