title: How to get array value dynamically
body: <p>I'm not sure if there is such a function, but I'd expect it to do the following:
  <code>get_array_value($array, $chain);</code> where <code>$array</code> is the array to search for the value, and <code>$chain</code> is an array that contains information which value to retrieve.</p>
  <p>Example usage: if <code>$chain = array('key1', 'key2', 'key3');</code>, then the function should return <code>$array['key1']['key2']['key3'];</code></p>
  <p>Is there anything similar out there already and if not, how could I achieve this?</p>
  <p>Thanks in advance!</p>
  <h1>UPDATE:</h1>
  <p>Huh, the intended result should be a single value, not an array. So I could use it like <code>echo get_array_value($array, $chain);</code></p>