我有像这样的数组对象列表
feedbasestatsobjectlist->
statslist->
[0]->timetype = "hour"
timestamp = "408069"
event = "release"
[1]->timetype="min"
timestamp = "24484150"
event = "release"
[2]->timetype = "hour"
timestamp = "408069"
event = "success"
[3]->timetype="min"
timestamp = "24484150"
event = "success"
[4]->timetype = "hour"
timestamp = "408069"
event = "something"
[5]->timetype="min"
timestamp = "24484151"
event = "something"
现在迭代这个数组对象列表我想根据值创建3个seprate数组。 第一个数组的值为timetype = hour,时间戳= 4048069 所以数组将是
array_1->
timetype = 'hour'
timestamp = '408069'
event = 'release','success','something'
array_2->
timetype = 'min'
timestamp = '24484150'
event = 'release','success'
array_3->
timetype = 'min'
timestamp = '24484151'
event = 'something'
所以基本上将相同的时间戳值组合成单独的数组。 任何帮助将不胜感激