Answer the question
In order to leave comments, you need to log in
How to parse meta tags?
I use the simple_html_dom.php library. Title was parsed the first time:
include_once ('simple_html_dom.php');
$ht = curl_get('http://site.ru');
$html = str_get_html($ht);
$pageTitle = $html->find('title',0);
$pageTitle = $html->find('description',0);
$pageTitle = $html->find('description');
$pageTitle = $html->find(meta[description]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question