<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AJYA</author_name>
  <author_url>https://blog.hatena.ne.jp/AJYA/</author_url>
  <blog_title>ソフトウェア開発者の日常</blog_title>
  <blog_url>https://ajya.hatenablog.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>一見すると選択肢がほぼ同じ選択項目が2箇所あります。 2箇所の選択項目の違いは、1個の選択肢の有無だけです。 一方の選択項目の選択肢の最後にある選択肢が、もう一方の選択項目の選択肢にはありません。 それ以外は選択肢は全く一緒です。PHPで選択項目の選択肢は定義されています。 配列で選択肢は定義されていて、1個の選択肢の有無だけで2種類の配列を定義していませんでした。 2箇所の選択項目で選択肢の定義を共用するために、異なる部分である最後の要素を削除していました。 最後の要素の削除は、array_pop()を使って以下のように行っていました。 $selectArr = array(&quot;a&quot;, &quot;b&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2018%2F07%2F13%2F125000&quot; title=&quot;PHP：配列の最初の要素の削除／最後の要素の削除の方法 - ソフトウェア開発者の日常&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-ak.f.st-hatena.com/images/fotolife/A/AJYA/20180713/20180713124508.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-13 12:50:00</published>
  <title>PHP：配列の最初の要素の削除／最後の要素の削除の方法</title>
  <type>rich</type>
  <url>https://ajya.hatenablog.jp/entry/2018/07/13/125000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
