Creating a javascript array with one to many type relationship

Sometimes I need to build an array of lists with a one to many type relationship. For example this data: 1. item1 has a parent of key1. 2. item2 has a parent of key2. 3. item3 has a parent of key1. Using PHP after packing the array I will end up with something like this: … Continue reading Creating a javascript array with one to many type relationship