Php - Получение title страницы
Войти

Php - Получение title страницы

Php - Получение title страницы

1
2
3
4
5
6
7
<?php 

  $page_content 
file_get_contents ('http://www.ya.ru');
  
preg_match_all"|<title>(.*)</title>|sUSi"$page_content$titles);
  
print_r ($titles);

?>
Теги:
php