Let's say I have a multidimensional array made up of 3 arrays (1-100 possible) with the following values:
['NAME'] => array(
[0] => 'Bob',
[1] => 'Mike'
),
['MIDDLE'] => array(
[0] => 'goes to',
[1] => 'hates'
),
['SUBJECT'] => array(
[0] => 'the movies.',
[1] => 'the swimmingpool.'
)
Then I want to convert these into 8 arrays with these values:
[0] => array(
['NAME'] => 'Bob',
['MIDDLE'] => 'goes to',
['SUBJECT'] => 'the movies.'
),
[1] => array(
['NAME'] => 'Bob',
['MIDDLE'] => 'goes to',
['SUBJECT'] => 'the swimmingpool.'
),
[2] => array(
['NAME'] => 'Bob',
['MIDDLE'] => 'hates',
['SUBJECT'] => 'the movies.'
),
[2] => array(
['NAME'] => 'Bob',
['MIDDLE'] => 'hates',
['SUBJECT'] => 'the swimmingpool.'
),
etc.
Can anyone give me a hint in the right direction ? Just can't figure it out.