How to merge data using php.

Posted by bob on Stack Overflow See other posts from Stack Overflow or by bob
Published on 2010-04-27T15:57:30Z Indexed on 2010/04/27 16:13 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

Currently my MySQL data stored like below

product             | total
------------------------------------------
puma,adidas         | 100.00,125.00     
puma                | 80.00
reebok,adidas,puma  | 70.00,100.00,125.00
adidas,umbro        | 125.00,56.00      

How to combine, explode, merge and total it like this in php?

puma     485.00
adidas   350.00
reebook  70.00
umbro    56.00

© Stack Overflow or respective owner

Related posts about php

Related posts about merge