Binary tree using PHP
<p>I want to build a binary tree using PHP. But as there are no pointers in PHP, how can i build a tree.
For each node in the tree there must be the following attributes:
<br/>1. value at the node
<br/>2. level of the node
<br/>3. pointer to right child
<br/>4. pointer to left child</p>

<p>But as there are no pointers in PHP, i dont know how and where to start. All i know is that if we use $a=&amp;$b, then both will point to the same object and they are not like pointers in C.
Please suggest me few ways to build a binary tree using PHP.</p>
