Menu
This is a weird one, I’ve got a scenario where an array of items are being posted via a form. The array are ID’s.
I need to pair each ID with the other. For example; if I have 1,2,3,4,5 I need
1 – 2
1 – 3
1 – 4
1 – 5
2 – 3
2 – 4
2 – 5
I do not want to duplicate them either, what’s the best way to do this?