<?php
$content = file_get_contents('http://webgoo.ir');
$footer = preg_match("/<div class=\"footer-txt\"[^>]*>(.*?)<\\/div>/ims", $content, $match);
echo $match[1];
?>
<div class="footer-txt">
مقادیری که استخراج می شود
</div>
<!DOCTYPE html>
<body>
<?php
// Reading contents from the
// geeksforgeeks homepage
$str = file_get_contents(
"https://www.geeksforgeeks.org/");
echo $str;
?>
</body>
</html>