function menu_tree($lifo, $str)
{
if (sizeof($lifo) == 0)
return $str;
$clen = array_pop($lifo);
$str .= $clen . "-";
menu_tree($lifo, $str);
}
$list = array(1,4,5,6,7,8,9);
echo menu_tree($list, "Numbers: ");
I simplified my problem to the code above and the damn thing will not work like this 🙁
If I replace "$str .= $clen . "-";" with "echo $clen", then the output works nice... But I need a string, to write it to a file.
My system Windows NT localhost 5.1 build 2600, PHP Version 4.3.0, Zend Engine v1.3.0 and Apache/1.3.27 Server.
Help?
Thanks in advance...
edmund