i have an array of data from from my database, it looks like this
[0] => Array
(
[id] => 40
[market] => EUR/USD
[date] => 2012-02-29 12:20:34
[points] => 42
)
[1] => Array
(
[id] => 41
[market] => EUR/USD
[date] => 2012-02-29 13:23:03
[points] => 11
)
and it goes on like this till the end of the database query which is something like 200 records. The database has information for a whole month with multiple records for the same day.
Anyway i want to be able to go through the array and take out all the information for a single day (By the why the information coming from the database is already sorted DESC).
How would i do this? I’ve looked at “array_splice” and “array_file” but i’m struggling to put them into this problem.
Thanks.
You can do something like