首页 考研信息 考研信息示例代码 专业详情查询[PHP]

专业详情查询示例代码[PHP]

作者: 阅读数:5420 上传时间:2022-10-19

专业详情查询

<?php
  
$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/kaoyan/query?appkey=$appkey";

 
$result = curlOpen($url);
  
$jsonarr = json_decode($result, true);
  
if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}
  
$result = $jsonarr['result'];
print_r($result);