Convert one level array to multilevel array in php
<p>I have an array and a var like this:</p>

<pre><code>$arrPs =array('p1','p2','pN');
$intVar = 80;
</code></pre>

<p>Now i want to convert it into an array like this:</p>

<pre><code>array(
   'p1'=&gt;array(
            'p2'=&gt;array(
                'pN'=&gt;$intVar
             )
     )
);
</code></pre>

<p>This should work no matter how many values are in $arrPs array.</p>

<p>Hope this makes sense.</p>

<p>/Sune</p>
