Array
(
[i_id] => 0
[f_tok] => _p9kmWKZaplimWSZeJlymVKZQplEmUwH7AfkE~xB5BsXLZtBnZ8HmQefnw!!
[form] => [{"name":"Incident.Threads","value":"asd","required":true},{"name":"Incident.Product","value":188,"required":false},{"name":"Incident.Category","value":142,"required":false},{"name":"Contact.Name.First","value":"asd","required":true}]
)
这是通过$_POST
收到的。使用print_r
我已从$_POST
打印出此数据。
如何获取[form] => [{.....}]
中的数据?
答案 0 :(得分:1)
这是一个JSON字符串,您可以将其解码为数组,然后从那里获取它。
print_r(json_decode($_POST['form']));