Convert 1-dimensional array with n items, into n-dimensional array
<p>How to convert this:</p>

<pre><code>$arr = array('item1','item2','item3','item4','...');
</code></pre>

<p>to this:</p>

<pre><code>$arr2['item1']['item2']['item3']['item4']['...'] = $something;
</code></pre>
