Hello,
If anyone have expamples of displaying tree structure.
Say I have array $result[x][y] with folloowing data
XY["ID"]Y["OWNER"]
01 0
12 1
23 2
34 2
45 3
56 2
67 2
So, I want it displayed like
ID1
ID2
ID3
ID5
ID4
ID6
ID7
Please, help I tryed to do it with recursing but failed.
There is a test function which shows that php doesnt support recursing
well:-
function parse($id){
global $result;
$idarr=getChildren($id); // thsi function return indexes of child nodes
of $id or empt array.
for ($i=0;$ihttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php