http://pastebin.com/m5af717f2
Hey, so I wish to make guam#eye of newt/ as one array new record,contaiing inside that 'guam' and 'eye of newt'
So, each # means a different item each / means a different record
So each array line in $string2 is a record. i want to echo part one to 'primary' and part 2 to 'secondary
so guam #eye of newt/marrentil#unicorn horn dust/
Becomes
"['', 'attack po.......'guam','eye of newt',
"['', 'antipoison.....'marrentil','unicorn horn dust'
My focus is not on coding ability, but just getting the end string (it's for a javascript thing, so the degree of reusable code, and efficency etc doesn't matter at all =D)
If anyone can help me out with this i'd be greatful!
Cheers, zezi.