获取网页JSON内容输出
<?php
header("Content-type:text/html;charset=utf-8");
$access_token_url = "https://api.douban.com/v2/book/1220562";
$data =file_get_contents($access_token_url);
$data_new = json_decode($data, true);
var_dump($data_new);
?>
获取网页JSON内容输出
<?php
header("Content-type:text/html;charset=utf-8");
$access_token_url = "https://api.douban.com/v2/book/1220562";
$data =file_get_contents($access_token_url);
$data_new = json_decode($data, true);
var_dump($data_new);
?>
相关课程