<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>注意: array の配列の数値添字は保存されないことに注意しましょう。 PHP: array_splice - Manual 配列が変化しようとしまいと関係なく、とにかく array_splice() を通すだけで添字は振り直される &lt;?php $a = [0=&gt;1, 2=&gt;2, 4=&gt;3]; print_r($a); array_splice($a, 10); print_r($a); 実行結果はこんな感じになる Array ( [0] =&gt; 1 [2] =&gt; 2 [4] =&gt; 3 ) Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 )</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20230219%2Farray_splice&quot; title=&quot; array_splice() を使うと添字が振り直される - 揮発性のメモ２&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://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1577169589465165</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-19 18:11:58</published>
  <title> array_splice() を使うと添字が振り直される</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20230219/array_splice</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
