小弟我在用php做一个json字段的输出的时候,需要输出两个json数据,但是前台获取不到

WBOY
Release: 2016-06-13 13:33:53
Original
883 people have browsed it

我在用php做一个json字段的输出的时候,需要输出两个json数据,但是前台获取不到
我的代码如下,请高手帮忙指点一下!!
$qunList=$songGuoEr->findCountTestQuesMainListByTestId($testId,$offset,1);
$optionsList=$songGuoEr->findCountTestQuesOptionsListByQuesId($qunList->quesId);
echo json_encode($qunList);
echo json_encode($optionsList);
谢谢!!

------解决方案--------------------
echo json_encode( array($qunList, $optionsList) );

当然你的前台也要做相应的变动

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template