Array
(
[0] => Array
(
[category] => JDF Editors
[product] => EFI JDF Connector
[page] => 1
)
[1] => Array
(
[category] => Ecommerce & web interface tools
[product] => Synapse InSite
[page] => 1
)
[2] => Array
(
[category] => Ecommerce & web interface tools
[product] => EFI Exchange
[page] => 2
)
[3] => Array
(
[category] => Asset transfer tools
[product] => Delano Publish
[page] => 2
)
[4] => Array
(
[category] => Asset transfer tools
[product] => Synapse InSite
[page] => 3
)
[5] => Array
(
[category] => Asset transfer tools
[product] => EFI Exchange
[page] => 3
)
)
Okay, so I have this multi-d array. I'm trying to create a table of contents with it. Ultimately, I want it to look like this (don't sweat the poorly aligned periods, I'll do that with tables):
JDF Editors ........................................ 1
EFI JDF Connector ........................ 1
Ecommerce & web interface tools ..... 1
Synapse� InSite .......................... 1
EFI Exchange� ............................ 2
Asset transfer tools .......................... 2
Delano Publish ............................. 2
Synapse� InSite ......................... 3
EFI Exchange� ............................ 3
I guess this board trims spaces at the beginning of lines, but I basically had the products just slightly nested below the category names, if you know what I mean.
I'm having a real heck of a time. I can't figure out how to have each category only appear only once (it's first position in the array).
Any help on this would be GREATLY appreciated. I've been trying for about 3 hours to figure this out, so it's not just 'come let the php guys do your work for you'. I'm at my wits end! 😕