Re: [PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Graham Anderson
I got it :) just put a print_r at each step of the function like: print_r($part->$parts); thanks g On May 18, 2006, at 11:59 AM, Robert Cummings wrote: On Thu, 2006-05-18 at 14:11, Graham Anderson wrote: I am a bit new to Objects and Recursion Any push in the right direction is appreciat

Re: [PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Robert Cummings
On Thu, 2006-05-18 at 14:11, Graham Anderson wrote: > I am a bit new to Objects and Recursion > Any push in the right direction is appreciated > > Generated from Pear's mimedecode, I have an object whose print_r is: > http://www.siren.cc/dev/object.txt > > > The function below will correctly tra

[PHP] Debug/Learn Recursion of an Object

2006-05-18 Thread Graham Anderson
I am a bit new to Objects and Recursion Any push in the right direction is appreciated Generated from Pear's mimedecode, I have an object whose print_r is: http://www.siren.cc/dev/object.txt The function below will correctly traverse the object and find the 'correct' node. Unfortunately, it