- Code: Select all
function display_tree($temp)
{
if ( $temp < 10 )
display_tree($temp+1);
else
echo "display_tree($temp);\n<br>";
}
display_tree(0);
Now, in C++ that would have displayed that line 10 times decending to 0. I tried it in PHP and it only displays the one line ( the number 10 ). Am I going about this wrong or is this just not supported?
Thanks for the input.
Will


Thank you for the reply Jay.