У меня есть массив, который я хотел бы создать многомерный массив на основе определенного индекса в нем.
Array
(
[0] => Array
(
[notecata] => Tele Call
[user_id] => 1
[note_key] => 4977f48e
[note_title] => Urgent Call to Soorya
[note_description] => want to discuss about the work
[added_on] => 15-11-11
)
[1] => Array
(
[notecata] => Set PlaceMent Drive
[user_id] => 1
[note_key] => b8b25bd8
[note_title] => Want to collect biodata from Students
[note_description] => Soorya must do this very well
[added_on] => 15-11-11
)
[2] => Array
(
[notecata] => Conference
[user_id] => 1
[note_key] => 3cdb4886
[note_title] => Sunday Meeting
[note_description] => About new courses
[added_on] => 08-11-11
)
)
Я хочу получить следующий вывод
Array
(
[15-11-11] => Array
(
[0] => Array(
[notecata] => Tele Call
[user_id] => 1
[note_key] => 4977f48e
[note_title] => Urgent Call to Soorya
[note_description] => want to discuss about the work
)
[1] => Array(
[notecata] => Set PlaceMent Drive
[user_id] => 1
[note_key] => b8b25bd8
[note_title] => Want to collect biodata from Students
[note_description] => Soorya must do this very well
)
)
[8-11-11] => Array
(
[0] => Array(
[notecata] => Conference
[user_id] => 1
[note_key] => 3cdb4886
[note_title] => Sunday Meeting
[note_description] => About new courses
)
)
)