Returning result from recursive function
| From: | Dion Vansevenant | Date: | Thu, 03 Aug 2000 15:35:16 +0000 |
| Subject: | Returning result from recursive function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-9951@lists.php.net to get a copy of this message | ||
How can I return a result to the main code from within a recursive function?
Just using "return $var;" in the code does not work? Should I define the
variable as global and then return the value, or is there a better way to
accomplsih this?
Thanks.
Dion
*************************************************************************
* Dion Vansevenant *
* Systems & Technology Analyst dion.vansevenant@rowecom.ca *
* RoweCom Canada Tel: (519) 472-1005 *
* P.O. Box 2382 Fax: (519) 472-1072 *
* London, ON N6A 5A7 www.rowecom.ca *
* Canada *
*************************************************************************