<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tmegos</author_name>
  <author_url>https://blog.hatena.ne.jp/tmegos/</author_url>
  <blog_title>tmegos blog</blog_title>
  <blog_url>https://tmegos.hatenablog.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>だいぶ詰まってしまったのでメモ。 PHPでarray_walk_recursiveという関数があります。これは指定した関数に、配列を再帰的に処理していくというものです。配列の中身が多次元配列だととても重宝する関数ですが、戻り値はbooleanになっています。 つまり、 $array = array_walk_recursive($array, 'ユーザ定義関数'); としてあげても、$arrayの中身はarray_walk_recursiveが正常に終了したかどうかのtrueかfalseが入ってしまうということです。これを解決するためには、ユーザ定義関数の引数にアンパサンド（&amp;）をつけてあげれ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmegos.hatenablog.jp%2Fentry%2F2012%2F05%2Farraywalkrecursive.html&quot; title=&quot;array_walk_recursiveで変更された値を取得する - tmegos 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-05-17 23:41:00</published>
  <title>array_walk_recursiveで変更された値を取得する</title>
  <type>rich</type>
  <url>https://tmegos.hatenablog.jp/entry/2012/05/arraywalkrecursive.html</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
