[thelist] recursive PHP functions

Mircea Bogdan evolt at personal.ro
Mon Sep 16 10:23:01 CDT 2002


I'm very confused over this:

function recursive ($n)
 {
    if ($n > 10) return $n;
	$n++;
	recursive ($n);
 }
echo "The result:".rec1(1)."<br>";

It doesn't return the result I expected and it's turning me wild. The PHP
Manual doesn't have refferences about recursive functions so I'd be happy to
get a solution from thelist


______________________________________________________________________
Do you want a free e-mail for life ? Get it at http://www.personal.ro/




More information about the thelist mailing list