Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
$url_og = "https://net-raft.com";
$page_content = file_get_contents("$url_og");
$dom = new DOMDocument();
$dom->loadHTML($page_content);
$meta_val = "";
foreach($dom->getElementsByTagName('meta') as $meta) {
if($meta->getAttribute('name')=='description'){
$meta_val = $meta->getAttribute('content');
echo $meta_val;
}
else
{
}
}
?>
</body>
</html>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408