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 = )
{
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
[snip]
?php
function Test()
{
static $count = 0;
$count++;
echo $count;
if ($count 10) {
Test ();
}
$count--;
}
?
**
*
Interesting but I am still lost as I need some help with
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:
Can functions / methods
Kevin,
Have fun and be sure to guarantee the prevent never ending looping.
Roberto
?php
function RecursiveFunction($aCounter)
{
if($aCounter = 10)
{
echo brCounting to ten: $aCounter\n;
$aCounter++;
RecursiveFunction($aCounter);
}
}
?
- Original Message -
From: Kevin