<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d4-1977</author_name>
  <author_url>https://blog.hatena.ne.jp/d4-1977/</author_url>
  <blog_title>めも帖</blog_title>
  <blog_url>https://d4-1977.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP5</anon>
  </categories>
  <description>連想配列で特定の要素を削除する方法がわかりませんでした。 調べてみたら、わかったのでメモ。 $array = array( '山手線' =&gt; ['品川','東京','上野'] ); unset( $array['山手線'][1] ); $array = array_values($array); unset()で削除できます。ところが、存在が残るというか整理はされないんです。そこで、array_values()を実行すると配列が整理されました。これで大丈夫（だと思う）。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fd4-1977.hatenablog.com%2Fentry%2F20071130%2F1196400683&quot; title=&quot; 連想配列で特定の要素の配列の要素を削除する（わかりにくい） - めも帖&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>2007-11-30 14:31:23</published>
  <title> 連想配列で特定の要素の配列の要素を削除する（わかりにくい）</title>
  <type>rich</type>
  <url>https://d4-1977.hatenablog.com/entry/20071130/1196400683</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
