A custom method Binary Tree Class

the problem is I am stuck with displaying the data in a table. In the file attached you can see what I am trying to achieve...

I would like to display the binary tree in a table. After lot of pain I managed to figure out how to deal with colspans.. but I don't know how to populate it correctly...The problem is with empty peers...

I would like to have a node's method: $tree->nodes[2]->to_table_array(4); Where the parameter is $depth -> how deep it should go

So I should get something like:

$arr = array(



---[2]=>array(4,null, null, 5),

---[3]=>array(6, null, null, null, null, null, 7, 8)


The key of the array is the table row or depth of the tree... each then, has an array of ids or null if there is no child there

I can set a desired depth (up to 10) and the array must populate for each "layer"/"row" even if it has only nulls!

I will nee also test case (with a table like in the attached file) and instead of icons there should be node ids or   for empty cell

Skills: PHP

See more: what is binary tree in c, what is binary tree, what is a tree node, tree node, node of a tree, node in tree, binary tree nodes, binary t, binary s, binary problem, binary method problem, what is node, what is a test case, the tree, test case, null, method, binary, php table array, file binary, binary tree key, problem parameter, class custom php, tree data, custom case

About the Employer:
( 10 reviews ) London, Slovenia

Project ID: #588445

7 freelancers are bidding on average $86 for this job


I can do it perfectly and provide you technical documentation as well as full programming guide line ....

$240 USD in 7 days
(77 Reviews)

You have PM

$60 USD in 0 days
(10 Reviews)

i have a cool working demo for you. Please check PMB for the demo url.

$80 USD in 1 day
(31 Reviews)

Hi, please check PMB

$60 USD in 1 day
(15 Reviews)

Hello sir, Your requirment: input a array of that type, and display a html table somelike the image? If right, please let us start. Regards, Aking

$50 USD in 1 day
(2 Reviews)

i can do it!

$50 USD in 1 day
(0 Reviews)

Its a very simple project to me

$60 USD in 1 day
(0 Reviews)