Build a tree structure with PHP

See here