Quick Question:
I have the following array (multidimensional):
Array (
[preorder] => 0
[data] => Array (
[0] => 03:00:00
[1] => 03:15:00
[2] => 03:30:00
[3] => 03:45:00
[4] => 04:00:00
[5] => 04:15:00
[6] => 04:30:00
[7] => 04:45:00
[8] => 05:00:00
)
)
How, if possible do I use a foreach to get the options from the [data] subarray. So forexample if I were to write in PHP:
foreach($arrayname as $key=>$data) {
echo $data[$i];
$i++;
}
But this doesn't seem to work. I know how to do this if each item in the array is set as say 'time_slot' or something, but I'm not entirely sure how this could work?
Any insight would be greatly appreciated.