📜  php decode json object - PHP 代码示例

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

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