<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>URLを突っ込めば、普通にファイルアクセスする感じで使えちゃう。 &lt;?php $contents = @file_get_contents('http://www.yahoo.co.jp/'); echo $contents; ?&gt; ネタ元 http://nyx.pu1.net/practice/file_ope/file_ope3.html 読み込んだhtmlの中から特定部分を抽出する場合はpreg_match_all()を使って正規表現で取り出すといいでしょう。 $pattern = '/(&lt;p&gt;)(.*)(&lt;\/p&gt;)/'; preg_match_all($pattern,$conten…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F20120326%2Fp1&quot; title=&quot;PHPでhtmlファイルを読み込む - shikaku&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-26 00:00:00</published>
  <title>PHPでhtmlファイルを読み込む</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/20120326/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
