📜  php curl 示例站点:www.quora.com - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:35.591000             🧑  作者: Mango

代码示例1
function getUrl($url){
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $response = curl_exec($ch);
    curl_close($ch);
    return $response;
}