PHP中把数据库查询结果输出为json格式简单实例 include/conn.php为数据库链接文件,不会的网上搜索<?phpinclude'./include/conn.php';//数据库链 输出为json格式