<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Bayside</author_name>
  <author_url>https://blog.hatena.ne.jp/Bayside/</author_url>
  <blog_title>Devel::Bayside</blog_title>
  <blog_url>https://bayside.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>foreach を使ったループで以下のように書いたら、 foreach ( $list as $item ) { $item['hoge'] = 'fuga'; } ループを抜けたら $item['hoge'] が空っぽになってしまってはまりました。http://groundwalker.com/blog/2008/02/php_foreach.html 配列の各要素を書き換えたいとき、PHP5なら、&amp;をつけることで、要素を一時変数にコピーせずに参照することができる。 ということらしく、以下のように書くのが正しいようです。 foreach ( $list as &amp;$item ) { $item…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbayside.hatenablog.com%2Fentry%2F20080429%2Fp2&quot; title=&quot; レファレンスではまる - Devel::Bayside&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>2008-04-29 00:00:01</published>
  <title> レファレンスではまる</title>
  <type>rich</type>
  <url>https://bayside.hatenablog.com/entry/20080429/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
