RE: [PHP-WIN] recursion
| From: | HKG) | Date: | Mon, 21 Jan 2002 14:03:39 +0000 |
| Subject: | RE: [PHP-WIN] recursion | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11539@lists.php.net to get a copy of this message | ||
From: Sandeep Murphy
Sent: Monday, January 21, 2002 2:29 PM
To: php-windows@lists.php.net
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];
}