架构 JSON
------解决方案--------------------
那你直接写上不就得了$tmparr['drink'] = array('ClsID'=>'01','ClsName'=>'饮料类'); // [drink]
$tmparr['drink']['sodas'] = array('ItemID'=>'0000','ItemName'=>'碳酸饮料','ItemRate'=>'100%'); //[sodas]
$tmparr['drink']['juice'] = array('ItemID'=>'0001','ItemName'=>'果汁饮料','ItemRate'=>'100%'); //[juice]
$tmparr['food'] = array('ClsID'=>'02','ClsName'=>'食品类'); //[food]
$tmparr['food']['fresh'] = array('ItemID'=>'0101','ItemName'=>'生鲜','ItemRate'=>'3%'); //[fresh]
$tmparr['food']['cooked'] = array('ItemID'=>'0102','ItemName'=>'熟食','ItemRate'=>'3%'); //[cooked]
相关文章
相关视频