I have a multidimensional array in PHP that I would like to put in to a table in HTML. This is the array I have:
[2014-04-04] => Array
(
[0] => Array
(
[name] => Bob
[uid] => 4tVydHSaLFwm9QbGfYtzwoyV5bfvEGn8
[result] => 10.4
[type] => a_breakfast
)
[1] => Array
(
[name] => Bob
[uid] => 4tVydHSaLFwm9QbGfYtzwoyV5bfvEGn8
[result] => 3.9
[type] => b_lunch
)
)
[2014-04-05] => Array
(
[0] => Array
(
[name] => Bob
[uid] => 4tVydHSaLFwm9QbGfYtzwoyV5bfvEGn8
[result] => 3.5
[type] => b_breakfast
)
)
How can I get it so that the table has the following:
| DATE | BEFORE BREAKFAST | AFTER BREAKFAST | BEFORE LUNCH | AFTER ....
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 2014-04-04 | | 10.4 | 3.9 |
| 2014-04-05 | 3.5 | | |
I have tried multiple ways but I can not get it to work!