PHP Array generator for DtreeMenu