A PHP class to build XHTML tree from a data array