【发布时间】:2018-09-01 00:48:10
【问题描述】:
如何从 PHP 脚本生成这个结构文件 JSON?
示例 JSON:
{
"messages":[
{
"attachment":{
"type":"image",
"payload":{
"url":"#"
}
}
}
]
}
谢谢:)
【问题讨论】:
-
至少做一些努力并阅读php如何与json一起工作。
-
a google of: "json php" and top result is an example of
json_encode()