网问答>>PHP查询MYSQL,返回JSON格式?
问题
未解决

PHP查询MYSQL,返回JSON格式?

时间:2024-08-29 18:41:16
没有接触过JSON,做一个接口时候遇到的问题,请高手指教,用PHP查询MYSQL 返回下面的参数格式{ "Msg":"success", "Contents":[ {"Name":"测试111","Url":"http://www.baidu.com/"}, {"Name":"测试222","Url":"http://www.baidu.com/"}, {"Name":"测试333","Url":"http://www.baidu.com/"} ], "Number":3, "code":0}
本类最有帮助
Copyright © 2008-2013 www.wangwenda.com All rights reserved.冀ICP备12000710号-1
投诉邮箱: