搜索
系统检测到您的用户名不符合规范:

数组格式 帮帮忙!!

浏览:499 发布日期:2020年03月17日 分类:求助交流
goods: [{
"name": "热销",
"foods": [{

"name": "南瓜粥",
"price": 9.22,
"oldPrice": "",
"description": "食材:大米,南瓜",
"sellCount": 229,
"img": '../../static/nanguaz.jpg'

}, {
"name": "小米粥",
"price": 9.8,
"oldPrice": "",
"description": "食材:小米",
"sellCount": 239,
"img": '../../static/xiaomi.jpg'

},
{
"name": "油条",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}
]
},
{
"name": "折扣",
"foods": [{
"name": "油条1只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐",
"foods": [{
"name": "油条2只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥2",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐2",
"foods": [{
"name": "油条3只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥3",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "热销2",
"foods": [{
"name": "南瓜粥1",
"price": 9.22,
"oldPrice": "",
"description": "食材:大米,南瓜",
"sellCount": 229,
"img": '../../static/nanguaz.jpg'

}, {
"name": "小米粥1",
"price": 9.8,
"oldPrice": "",
"description": "食材:小米",
"sellCount": 239,
"img": '../../static/xiaomi.jpg'

}]
},
{
"name": "折扣2",
"foods": [{
"name": "油条4只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥4",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐3",
"foods": [{
"name": "油条5只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥5",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐4",
"foods": [{
"name": "油条6只",
"price": 1.81,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥6",
"price": 9.91,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "热销3",
"foods": [{
"name": "南瓜粥3",
"price": 9.21,
"oldPrice": "",
"description": "食材:大米,南瓜",
"sellCount": 229,
"img": '../../static/nanguaz.jpg'

}, {
"name": "小米粥3",
"price": 9.78,
"oldPrice": "",
"description": "食材:小米",
"sellCount": 239,
"img": '../../static/xiaomi.jpg'

}]
},
{
"name": "折扣3",
"foods": [{
"name": "油条7只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥7",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐6",
"foods": [{
"name": "油条8只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥8",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "套餐7",
"foods": [{
"name": "油条9只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥9",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},
{
"name": "热销4",
"foods": [{
"name": "南瓜粥4",
"price": 9.22,
"oldPrice": "",
"description": "食材:大米,南瓜",
"sellCount": 229,
"img": '../../static/nanguaz.jpg'

}, {
"name": "小米粥4",
"price": 9.8,
"oldPrice": "",
"description": "食材:小米",
"sellCount": 239,
"img": '../../static/xiaomi.jpg'

}]
},
{
"name": "折扣4",
"foods": [{
"name": "油条10只",
"price": 1.88,
"oldPrice": "",
"description": "食材:油条",
"sellCount": 229,
"img": '../../static/youtiao.jpg'

}, {
"name": "艇仔粥10",
"price": 9.9,
"oldPrice": "",
"description": "食材:瘦肉,干贝,花生等",
"sellCount": 239,
"img": '../../static/tingzaiz.jpg'

}],

},

]
我需要动态的这样格式数据, 大神们 PHP怎么写出这个格式
最佳答案
评论() 相关
后面还有条评论,
评论支持使用[code][/code]标签添加代码
您需要登录后才可以评论 登录 | 立即注册
收藏
nurali
积分:137 等级:LV1
热点推荐
(追記) (追記ここまで)
最新更新

我们

合作

网站

信息

ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。

AltStyle によって変換されたページ (->オリジナル) /