PHP, How can I split a string into 2 arrays?
Advertisements I have a string that looks like this… 333333-000000,555555-444444,888888-111111 I can use explode to get everything into an array using the commas as a delimiter, but then I’d have to explode each again using the – as a delimiter. Is there an easier way? I want the end result like this… a[0]=333333 b[0]=000000 a[1]=555555… Read More PHP, How can I split a string into 2 arrays?