Save array as multiple rows in collection
i am trying to add two values into a collection. one is a number, the other is an array. I would like a new row for each value in the array
e.g. number: 1 array:[1, 2, 3]
Collection:
col1 col2
1 1
1 2
1 3
Is this possible? If it helps the array values are being taken from a checkbox.