Array manipulation help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pheeko
Forum Newbie
Posts: 1
Joined: Thu Nov 26, 2009 9:26 am

Array manipulation help

Post by pheeko »

Hi all,
This is my first post...

i've this aray:
[8] => Array
(
[date] => 08/09
)

[9] => Array
(
[date] => 09/09
[0] => blog
[1] => 225
[2] => forum
[3] => 101
[4] => web
[5] => 1281
)

[10] => Array
(
[date] => 10/09
[0] => blog
[1] => 311
[2] => forum
[3] => 91
[4] => web
[5] => 1395
)


...and i need

[8] => Array
(
[date] => 08/09
)
[9] => Array
(
[date] => 09/09
blog => 225
forum => 101
web => 1281
)

[10] => Array
(
[date] => 10/09
blog => 311
forum => 91
web => 1395
)


Thank you for your help.

Pheeko
Post Reply