I have an array consisting of a number of domain names and their respective prices in the format of $domain = 'domain.com--11.99, domain.net--11.99' etc...
There could be upto 20 values in the array which is created when a user selects checkboxes in a form.
I need to split the string so that the domain and price are seperated to create 2 new arrays. 1 consisting of all the domains and 1 consisting of all the prices.
I then need to use something like the foreach command to print a row in a for each domain, with their respective prices in another column.
What is the best way of acheiving this?