Hi, while my main problem was answered in my previous post, there is something related yet independant of that problem that I havent managed to figure out yet.
How would I go about splitting an array into 3 arrays by exploding it's string elements?
example:
$bigarray = array(
'part1-part2-part3',
'apple1-apple2-apple3',
'orange1-orange2-orange3'
)
From this I would like to create:
$first_parts = array(
'part1',
'apple1',
'orange1'
)
$second_parts = array(
'part2',
'apple2',
'orange2'
)
$third_parts = array(
'part3',
'apple3',
'orange3'
)
Now I know I have to use the following somewhere:
explode('-',$value);
But how?