$json = '{"foo": 12345}'; $obj = json_decode($json); print $obj->{'foo'}; // 12345 转载于:https://www.cnblogs.com/anxiaoyu/p/7423211.html