For example: Cucumber
光阴似箭催人老,日月如移越少年。
Is this so?
[ "items": ["黄瓜" => 10, "萝卜" => 1], "total": ["草莓" => 1] ]
When saving to an array, first use json_encode方法转jsonstring
json_encode
json
[{ "cucumber": 10 },{ "radish": 10 },{ "berries": 10 }]
or
[{ "cucumber": 10, "radish": 10, "berries": 10 }]
// 或者这样? [ { cucumber: 10, radish: 1, Strawberry: 1, result: true }, { cucumber: 5, radish: 1, Strawberry: 1, result: false } ]
Is this so?
When saving to an array, first use
json_encode
方法转json
stringor