我在errors
中回显它们的值时遇到问题
{
"statusCode": 200,
"type": "form",
"requestUri": "/form",
"errors": [],
"timing": {
"form": {
"start": 1571233919.644254,
"end": 1571233919.947743,
"duration": 0.30348896980285645
}
},
"body": {
"form": {
"formResponse": {
"success": false,
"errors": [
"You have already submitted this form."
]
}
}
}
}
我已经尝试过
echo $array->body[0]-form->formResponse->errors;
,但无效
答案 0 :(得分:0)
您应该使用doxygen -l
函数。
也许您的代码可以像这样
json_decode
我假设$ json包含您上面粘贴的代码