本文实例讲述了php微信公众平台开发类。分享给大家供大家参考。具体分析如下:ThinkWechat.php类文件如下:<?phpclassWechat{/***微信推送过来的数据或响应数据*@vararray*/private$data=array();/***构造方法,用于实例化微信SDK*@paramstring$token微信开放平台设置的TOKEN*/publicfunction__construct($token){$this->auth($token)||exit;if(!empty($_GET['echostr'])){exit($_GET['echostr']);}els...