<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nomunomu0504</author_name>
  <author_url>https://blog.hatena.ne.jp/nomunomu0504/</author_url>
  <blog_title>のむログ</blog_title>
  <blog_url>https://tech.nomunomu0504.dev/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>PHP5</anon>
    <anon>PHP6</anon>
    <anon>PHP7</anon>
    <anon>PHPExtension</anon>
  </categories>
  <description>結論 関数を作って擬似的にドットアクセスをします &lt;?php function array_get(array $var, $format) { foreach (explode('.', (string)$format) as $key) { if (!isset($var[$key])) { return null; } $var = $var[$key]; } return $var; } &lt;?php $array = array( 'A'=&gt;array( 'B'=&gt;array( 'C'=&gt;'OK' ) ), ); var_dump(array_get($array, 'A.B.C'))…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.nomunomu0504.dev%2Fentry%2F2018%2F09%2F02%2F223137&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/n/nomunomu0504/20190411/20190411144524.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-09-02 22:31:37</published>
  <title>PHPで配列のドットアクセス</title>
  <type>rich</type>
  <url>https://tech.nomunomu0504.dev/entry/2018/09/02/223137</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
