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:
1. value at the node
2. level of the node
3. pointer to right child
4. pointer to left child
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=&$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.