I have hypothetical table (for the convenience of the indices used real names)
table: product_price
id: | product | valuta | location | price
------------------------------------------------------------------
01 | milk | EUR | London | 20
02 | milk | USD | Boston | 19
03 | milk | JPY | Boston | 180
04 | apple | USD | Boston | 200
05 | apple | USD | Springfild | 210
how get this array?
array(<br>
array('id'=>01, 'product'=>milk, 'location'=>'Boston', 'price_USD'=>19, 'price_JPY'=>180),<br>
array('id'=>02, 'product'=>apple, 'location'=>'Boston', 'price_USD'=>200)<br>
);