title: Dynamically accessing multidimensional array value
body: <p>I'm trying to find (or create) a function. I have a multidimensional array:
  </p>
  
  <pre><code>$data_arr = [
      "a" =&gt; [
          "aa" =&gt; "abfoo",
          "ab" =&gt; [
              "aba" =&gt; "abafoo",
              "abb" =&gt; "abbfoo",
              "abc" =&gt; "abcfoo"
          ],
          "ac" =&gt; "acfoo"
      ],
      "b" =&gt; [
          "ba" =&gt; "bafoo",
          "bb" =&gt; "bbfoo",
          "bc" =&gt; "bcfoo"
      ],
      "c" =&gt; [
          "ca" =&gt; "cafoo",
          "cb" =&gt; "cbfoo",
          "cc" =&gt; "ccfoo"
      ]
  ];
  </code></pre>
  
  <p>And I want to access a value using a single-dimentional array, like this:
  </p>
  
  <pre><code>$data_arr_call = ["a", "ab", "abc"];
  
  someFunction( $data_arr, $data_arr_call ); // should return "abcfoo"
  </code></pre>
  
  <p>This seems like there's probably already a function for this type of thing, I just don't know what to search for.</p>