Don't Echo Out cURL

前端 未结 3 1265

When I use this code:

$ch = curl_init($url);
$statuses = curl_exec($ch);
curl_close($ch);

I am returned what I want, but if I just use that - <

3条回答
  •  离开以前
    2021-01-31 07:12

    Include this option before curl_exec()

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    

提交回复
热议问题