If I do var_dump($this->reports);
I have an array that looks like this:
array(15) {
["Terry CS"]=>
array(1) {
["2011-10-26"]=>
array(2) {
[0]=>
string(5) "69.90"
[1]=>
string(5) "69.90"
}
}
["2011-10-27"]=>
array(3) {
[0]=>
string(6) "199.50"
[1]=>
string(6) "199.50"
[2]=>
string(5) "69.90"
}
}
["Lisa CS"]=>
array(1) {
["2011-10-26"]=>
array(1) {
[0]=>
string(5) "69.90"
}
}
}
how do I read through it so I can data in a table or list?
thanks
You can use foreach to iterate on an array:
If you want access to a specific data you can do this:
More information here.