o0O0o.o0O0o
01-22-2008, 11:51 PM
hi
i am using recursion function to display the tree based menu.
Initially i was echoing it line by line and it worked fine
but now i want to append the output to variable
function (parentid , depth)
{
$display . = ...
function(parentid,depth)
......
}
Now i want is that when the function finishes it returns the ouput
But how can i made the check that function has reached the last menu and now it should return the $display
not anywhere in between
i am using recursion function to display the tree based menu.
Initially i was echoing it line by line and it worked fine
but now i want to append the output to variable
function (parentid , depth)
{
$display . = ...
function(parentid,depth)
......
}
Now i want is that when the function finishes it returns the ouput
But how can i made the check that function has reached the last menu and now it should return the $display
not anywhere in between