PHP编程php中JSON的标准:双引号而非单引号
刚刚测试发现一段很简单的、看似正确的代码却是错误的:
$json_str = "{'name':'Eric','age':23}" ;
var_dump(json_decode( $json_str ));
...