bhupendra2895
New Member
- Messages
- 554
- Reaction score
- 20
- Points
- 0
I have a array that looks like
I want the result like this
I am trying to find the solution of above problem since many hours.
How this can be solved?
Code:
Array
(
[0] => Array
(
[link] => http://updated
[type] => x10
[vote] => 2
)
[1] => Array
(
[link] => http://latest
[type] => hosting
[vote] => 1
)
[2] => Array
(
[link] => http://paid
[type] => x10
[vote] => 3
)
[3] => Array
(
[link] => http://free
[type] => hosting
[vote] => 5
)
)
Code:
Array(
[x10] => Array
(
[link1] => http://updated
[vote1] => 2
[link2] => http://paid
[vote2] => 3
)
[hosting] => Array
(
[link1] => http://latest
[vote1] => 1
[link2] => http://free
[vote2] => 5
)
)
How this can be solved?