我列出了代码:
class myClass {
public $url;
public $content;
public $ip;
public function analysis()
{
$list = array('http://site.ru?url=http://'.urlencode($this->url) => 'get_tcy');
function request_callback($response, $info, $request)
{
//at this place I need print content of $list variable
}
$rc = new RollingCurl("request_callback");
foreach ($list as $key => $value)
{
$request = new RollingCurlRequest($key);
$rc->add($request);
}
$rc->execute();
}
但我在打印变量内容时遇到问题。如何在需要的地方打印?