PHPを使用して各profile_idの最初の2つの要素を取得する方法はありますか
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),
)
ありがとう