该文档是一篇关于微信PHP开发的“获取用户基本信息”的PHP代码,绝对是本人实践开发代码,可以运行 header("Content-type: text/html; charset=utf-8"); //获取access_token开始 $appid = ""; $appsecret = ""; $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret"; $ch = curl_init(); curl_setopt($ch