<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>例えば WordPressを使ったサイトで home_url('/') でサイトのURLを取得してそこからURLを組み立てたい時とか。 home_url('/') は行末に / が出力されるので、/ 始まりの変数と結合するとイケてないURLに… &lt;?php define('IMG_DIR', '/assets/images'); $dir = home_url('/') . IMG_DIR; echo $dir; // =&gt; http://example.wordpress.com//assets/images str_replace() を使って削除できるけど正規表現が必要なので、そこまでカ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2017%2F06%2F29%2F185146&quot; title=&quot;PHP 文字列末にある特定の文字を除去したい。 - かもメモ&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>https://images-fe.ssl-images-amazon.com/images/I/5168-NtoenL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-29 18:51:46</published>
  <title>PHP 文字列末にある特定の文字を除去したい。</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2017/06/29/185146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
