Hi,
I have been searching and trying for days now but still cant get this to work.
Id like to group my result from a SQL call into a multidimensional array.
The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly.
As long as the Timestamp is the same id like it to be grouped in an array
Hi,
I have been searching and trying for days now but still cant get this to work.
Id like to group my result from a SQL call into a multidimensional array.
The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly.
As long as the Timestamp is the same id like it to be grouped in an array
"2015-04-22 21:30:00, Room1, Device1, 5
"2015-04-22 21:30:00, Room1, Device2, 50
"2015-04-23 21:30:00, Room1, Device1, 6"
Here i would like the array to be grouped containing line 1 and 2 in a multidimensional array with the key for the timestamp.