So I was hoping to find a pre-built function out there preferably PHP/HTML/JS to recursively display a table in html, but I haven't thus far. I want a really dynamic way of displaying a table from Mongo DB, which as you may know can contain multidimensional data. Java script would come in to collapse / expand any data that is an array.

Anyone know of anything such as this pre-built?