I've got a CSV file containing 4 fields - ID, Product Group Name, Price & Items.
The Items field is a list of products (more than one) that belong to the group, separated by a |
symbol.
For example: 7, Fruit Basket, 9.99, Apple|Banana|Pear
Could you please help me to write a function to open the CSV file and output the contents as an array with the items nested at the second level.
The ID of the Product Group should be used for the key of the array.