📜  php json decode 在数组上不起作用 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:05.455000             🧑  作者: Mango

代码示例2
//"[{\"name\": \"bill\", \"score\": 0.7948127388954163}, {\"name\": \"john\", \"score\": 0.782698392868042}]";
//for json in above format try this
$r=json_decode(stripcslashes(trim($response,'"')));