<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jsstudy</author_name>
  <author_url>https://blog.hatena.ne.jp/jsstudy/</author_url>
  <blog_title>JavaScript勉強会</blog_title>
  <blog_url>https://jsstudy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPのエラーの対処方法をメモ。 PHPで配列のデータ追加時に、以下のようなエラーメッセージが出ました。 Message: [] operator not supported for strings これは配列の初期化の扱いが、PHP7.1から変更されていることが原因のようでした。 （参考） kitaney-wordpress.blogspot.com Uncaught Error: [] operator not supported for strings エラー これは、 $sample[] = $sample_data; など、配列にデータを追加するに当たって、配列の初期化の型がおかしい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsstudy.hatenablog.com%2Fentry%2FPHP-error-message_bracket-operator-not-supported-for-strings&quot; title=&quot;PHPのエラーメッセージ [] operator not supported for strings - JavaScript勉強会&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/j/jsstudy/20181011/20181011225836.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-12 01:42:02</published>
  <title>PHPのエラーメッセージ [] operator not supported for strings</title>
  <type>rich</type>
  <url>https://jsstudy.hatenablog.com/entry/PHP-error-message_bracket-operator-not-supported-for-strings</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
