Здравствуйте. Помогите, пожалуйста, изменить массив.
Есть массив:
Array
(
[0] => Array
(
[id] => 111
[title] => title1
[name] => picture
[value] => img1.png
)
[1] => Array
(
[id] => 111
[title] => title1
[name] => width
[value] => 600
)
[2] => Array
(
[id] => 111
[title] => title1
[name] => height
[value] => 400
)
[3] => Array
(
[id] => 222
[title] => title2
[name] => picture
[value] => img2.png
)
[4] => Array
(
[id] => 222
[title] => title2
[name] => width
[value] => 800
)
)
Должен стать так:
Array
(
[0] => Array
(
[id] => 111
[title] => title1
[nv] => Array
(
[0] => Array
(
[name] => picture
[value] => img1.png
)
[1] => Array
(
[name] => width
[value] => 600
)
[2] => Array
(
[name] => height
[value] => 400
)
)
)
[1] => Array
(
[id] => 222
[title] => title2
[nv] => Array
(
[0] => Array
(
[name] => picture
[value] => img2.png
)
[1] => Array
(
[name] => width
[value] => 800
)
)
)
)
Заранее благодарен!