How to properly sort MPTT hierarchy data into multidimensional array ?
- by DiegoMax
Helo there, im trying to figure out how to write a function that returns a multidimensional array, based on the data below:
I know how to write the function using the "category_parent" value, but im just trying to write a function that can create a multidimensional array by JUST using the left and right keys.
Any help greatly appreciated!
…