<?php
$url = 'https://example.ru/';
var_dump(getCurl($url));
exit;
function getCurl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$returned = curl_exec($ch);
curl_close($ch);
return $returned;
}
?>