A small library based on the technique outlined here: http://ferdychristant.com/blog//archive/DOMM-7QJPM7
Stores & retrieves parent/child data without having to do recursive db hits. Comments in library file are pretty self-explanatory.
Output can either come in the form:
or as a multi-dimensional array
All comments or recommendations welcomed.