RE: [PHP-DB] Calling functions recursively: recursive PHP functions

2003-02-01 Thread Kevin Gordon
Thanks John. Your comment helped me through. I used a static variable for the array, array_merge_recursive() function to accumulate the foreign keys and $this->kgforeignkeys as a recursive function in a loop. This all works ok! function kgforeignkeys($tablename = "" ) {

Re: [PHP-DB] Calling functions recursively

2003-01-28 Thread Leif K-Brooks
rehensive and more maintenance and stack friendly to just call the function in a loop, I agree. On the other hand ... well, there are arguments for the recursive approach for a number of algorithms. Personally I prefer not to use recursive functions, have never really seen the absolute necess

RE: [PHP-DB] Calling functions recursively: recursive PHP functions

2003-01-26 Thread John W. Holmes
[snip] > function Test() > { > static $count = 0; > > $count++; > echo $count; > if ($count < 10) { > Test (); > } > $count--; > } > ?> > ** > * > Interesting but I am still lost as I need som

Re: [PHP-DB] Calling functions recursively: recursive PHP functions

2003-01-26 Thread Kevin Gordon
Roberto & Jason thank you for your comments. Please note the question at the end of this email. I searched on "recursive PHP functions" and found: [thelist] recursive PHP functions Rob Wilson thelist at lists.evolt.org Mon Sep 16 11:00:01 2002 * Previous message: [thelist] recursive PHP fun

Re: [PHP-DB] Calling functions recursively

2003-01-25 Thread Roberto Plomp
not to use recursive functions, have never really seen the absolute necessity to do so. Roberto - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Subject: Re: [PHP-DB] Calling functions recursively > On Saturday 25 January 2003 14:49, Kevin Gordon wrote

Re: [PHP-DB] Calling functions recursively

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 14:49, Kevin Gordon wrote: > Can functions / methods be called recursively? If so how can this be > done? Comments much appreciated. google > "php recursive functions" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators *

Re: [PHP-DB] Calling functions recursively

2003-01-24 Thread Roberto Plomp
gt; Sent: Saturday, January 25, 2003 7:49 AM Subject: [PHP-DB] Calling functions recursively > Can functions / methods be called recursively? If so how can this be > done? Comments much appreciated. > Kevin Gordon > > > > > -- > PHP Database Mailing List (http://

[PHP-DB] Calling functions recursively

2003-01-24 Thread Kevin Gordon
Can functions / methods be called recursively? If so how can this be done? Comments much appreciated. Kevin Gordon -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php