I have this array output:
[0] => Array
(
[date] => 2014-04-02
[0] => 2014-04-02
[shiftName] => Long Day
[1] => Long Day
)
[1] => Array
(
[date] => 2014-04-03
[0] => 2014-04-03
[shiftName] => Long Day
[1] => Long Day
)
[2] => Array
(
[date] => 2014-04-04
[0] => 2014-04-04
[shiftName] => Long Day
[1] => Long Day
)
Is it possible to set a data into a variable?
For example:
$date = 2014-04-06;
$shiftname = Long Day;
and if so, from the results how do I make it into a table like this using a loop?:
-+--------------------------------------+-
| 2014-04-02 | 2014-04-03 | 2014-04-06 |
-+--------------------------------------+-
| Long Day | Long Day | Long Day |
-+--------------------------------------+-
$array[index]["date"]?