<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hi-hats</author_name>
  <author_url>https://blog.hatena.ne.jp/hi-hats/</author_url>
  <blog_title>低空飛行記録　fly or die autonomically</blog_title>
  <blog_url>https://hi-hats.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>prev(),next()のような配列の内部ポインタを操作する関数を使い、 foreachループの中で再度繰り返しやスキップなどをさせたい （スキップはcontinueでもOKだけど）しかし foreach は内部の配列ポインタに依存するので、 ループ内で配列ポインタを変更すると予期せぬ振る舞いを引き起こします。 だと。 実際、foreachの第一引数で与えられる変数は、foreach内で直接操作されていないっぽい。 Note: Unless the array is referenced, foreach operates on a copy of the specified array a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhi-hats.hatenadiary.org%2Fentry%2F20121005%2F1349434861&quot; title=&quot;foreach()の中で配列ポインタを動かしたいと思ったものの - 低空飛行記録　fly or die autonomically&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-10-05 20:01:01</published>
  <title>foreach()の中で配列ポインタを動かしたいと思ったものの</title>
  <type>rich</type>
  <url>https://hi-hats.hatenadiary.org/entry/20121005/1349434861</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
