<?php
 /**
     * 发送get请求
     * @param string $url
     * @return bool|mixed
     */
    function request_get($url = '')
    {
        if (empty($url)) {
            return false;
        }
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $data = curl_exec($ch);
        curl_close($ch);
        return $data; 
         }
    
   
 
$url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=VzR_4bVUteovWOBzxdfgEAQ-qB5bQoMD0ucdU8dYf0snkfP8uqhQVLW4Kj2M-AXYdyQSS7FyzLb8XTwHKRJ1ORHbkwx_t1SkWxiupNRiJuzpbXpxfngF-zMccX4FGb39CBDdACAGFH";
  $data2=request_get($url);

?>

 

相关文章:

  • 2021-11-28
  • 2021-10-20
  • 2021-08-31
  • 2021-04-10
  • 2022-01-07
  • 2022-12-23
  • 2022-02-27
  • 2021-10-28
猜你喜欢
  • 2022-01-06
  • 2021-05-11
  • 2021-12-18
  • 2021-12-27
  • 2022-02-19
  • 2021-12-13
相关资源
相似解决方案