From: Sandeep Murphy
Sent: Monday, January 21, 2002 2:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] recursion

>I hv an XML tree with some elements which keep repeating.. As of now, I am
>able to print only the last element..
>I need to make the loop recursive in order to print all the elements..
>
>wud appreciate any help..

Frame for a recursive function in pseudo code:

RecursiveFunction(Recurs_Argument)
{
        if ([breakConditionTrue]) {
                return [breakConditionTrue];
        } 
        
        else {
                ProcessData([Recurs_Argument]);
                RecursiveFunction([Recurs_Argument]);
        }

        return [breakConditionFalse];
}

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to