📜  CURL:按类名获取元素 - PHP 代码示例

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

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