$json_str = '{"thumb":"","photo":[{"url":"557a3d2184db0.png","alt":"SafeBootu6ce8u518cu8868"}]}'; // json字符串$obj = json_decode($json_str);$photo = $obj->photo;$url = $photo[0]->url; // echo url; //557a3d2184db0.png