<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>terazzo</author_name>
  <author_url>https://blog.hatena.ne.jp/terazzo/</author_url>
  <blog_title>terazzoの日記</blog_title>
  <blog_url>https://terazzo.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPで2個の配列から一つづつ値を取り出した際の全ての組み合わせを取得したい場合はforeachを入れ子にすればいい。 $arr1 = [0, 1, 2]; $arr2 = ['a', 'b', 'c']; $product = iterator_to_array((function ($a1, $a2) { foreach ($a1 as $v1) { foreach ($a2 as $v2) { yield [$v1, $v2]; } } })($arr1, $arr2)); echo &quot;[[&quot; . implode(&quot;],[&quot;, array_map(fn($arr) =&gt; implode(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fterazzo.hatenadiary.org%2Fentry%2F2024%2F12%2F15%2F114323&quot; title=&quot;PHPで無限ストリームの直積(1) - terazzoの日記&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>2024-12-15 11:43:23</published>
  <title>PHPで無限ストリームの直積(1)</title>
  <type>rich</type>
  <url>https://terazzo.hatenadiary.org/entry/2024/12/15/114323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
