本文实例讲述了PHP封装的Twitter访问类。分享给大家供大家参考。具体如下: class Twitter { /** * Method to make twitter api call for the users timeline in XML * * @access private * @param $twitter_id, $num_of_tweets * @return $xml */ private function api_call($twitter_id, $num_of_tweets) { $c = curl_init(); curl_s