这是我的数据库查询结果,
我需要像这样的结果
我该如何做到这一点,我不知道?
Array ([0] => Array ( [shopname] => Shop name [fueltype] => Pertol [amount] => 1000 )
[1] => Array ( [shopname] => dfsdfsd [fueltype] => Pertol [amount] => 54456 )
[2] => Array ( [shopname] => dfsdfsd [fueltype] => Disel [amount] => 54456 )
)
我需要像这样的结果
[["Shop name", "Pertol", 1000],["dfsdfsd", "Pertol", 54456],["Shop name", "Disel", 54456]]
我该如何做到这一点,我不知道?
json_encode()
函数... 这些现在是你的好朋友了... ;) - Raphioly-San