getInput获取POST数据后是字符串,如何转换成有效数组或json

浏览:1852 发布日期:2017/04/01 分类:ThinkPHP5专区 关键字: getInput post header
$request = Request::instance();
$test = $request->getInput();
$test = json_decode($test,true);
dump($test);die;



这个是请求回执,上面的是json_decode前的输出,下面是json_decode后的输出,请问如何处理getInput取回后的似json的字符串呢?
最佳答案
评论( 相关
后面还有条评论,点击查看>>