[snip] function recursive ($n) { if ($n > 10) return $n; $n++; recursive ($n); } echo "The result:".rec1(1)."<br>"; [/snip] You need to change the last line in the function recursize to return recursive ($n); The function isn't actually returning anything in the first case. Roger