我怎么能读这我该如何阅读php [{“profile”:“Admin”,“Cpt_profile”:“3”},{“profile”:“Consultant”,“Cpt_profile”:“1”}]
[{"profile":"Admin","Cpt_profile":"3"},
{"profile":"Consultant","Cpt_profile":"1"}]
在PHP请我希望有,
profile : admin
cpt_profile : 3
和
profile :consultant
cpt_profile :1
看起来像一个JSON:http://php.net/manual/en/function.json-decode.php – CD001
这是一个JSON字符串,使用['json_decode()'](http://php.net/manual/en/function.json-decode.php)将其转换为PHP可用数据类型 – RiggsFolly