#author("2020-06-18T15:24:05+09:00","default:fujioka","fujioka")
[[DEMO:https://bitlabo123.com/snippets/get_page_title.php]]
 function getPageTitle($url)
 {
     $matches = NULL;
 
     $html = file_get_contents($url);
     $html = mb_convert_encoding($html, 'utf8', 'auto');
     if (preg_match( "/<title>(.*?)<\/title>/i", $html, $matches)) {
         return $matches[1];
     } else {
         return FALSE;
     }
 }

RIGHT:Today : &counter(today); / Yesterday : &counter(yesterday); / Total : &counter(total);


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS