title: Dynamic array keys
body: <p>I have a string like this:</p>
  
  <p><code>$string = 'one/two/three/four';</code></p>
  
  <p>which I turn it into a array:</p>
  
  <p><code>$keys = explode('/', $string);</code></p>
  
  <p>This array can have any number of elements, like 1, 2, 5 etc.</p>
  
  <p>How can I assign a certain value to a multidimensional array, but use the <code>$keys</code> I created above to identify the position where to insert?</p>
  
  <p>Like:</p>
  
  <p><code>$arr['one']['two']['three']['four'] = 'value';</code></p>
  
  <p>Sorry if the question is confusing, but I don't know how to explain it better</p>