【PHP】bodyタグ内部を取得する方法

どこかからコピーしてきた

$contents = file_get_contents("http://xxxxxx/");
if (preg_match("/<body.*>([sS]*)</body>/i",$contents,$matches)){
$contents = $matches[1];
}

2006-11-13 15:00:00

口コミ・コメント

コメントを書く