无论如何要使用php获取每个profile_id的前两个元素
array(
array(['type'] => album,['profile_id'] => 1),
array(['type'] => video,['profile_id'] => 1),
array(['type'] => image,['profile_id'] => 1),
array(['type'] => album,['profile_id'] => 2),
array(['type'] => video,['profile_id'] => 2),
array(['type'] => scenes,['profile_id'] => 2),
array(['type'] => image,['profile_id'] => 2),
array(['type'] => album,['profile_id'] => 3),
array(['type'] => video,['profile_id'] => 3),
array(['type'] => album,['profile_id'] => 3),
)
预期结果
array(
array(['type'] => album,['profile_id'] => 1),
array(['type'] => video,['profile_id'] => 1),
array(['type'] => album,['profile_id'] => 2),
array(['type'] => video,['profile_id'] => 2),
array(['type'] => album,['profile_id'] => 3),
array(['type'] => video,['profile_id'] => 3),
)
谢谢