Form names with arrays
<p>I would like to convert: <code>"controllers[page[title_new]]"</code> to <code>"controllers[page][title_new]"</code>. So I can fill a form with input fields like:</p>

<pre><code>&lt;?php $name = 'controllers[page[title_new]]' ?&gt;

&lt;input type='text' name='&lt;?= $name; ?&gt;'&gt;
</code></pre>

<p>After you submit the form you get $_POST =</p>

<pre><code>array(controllers =&gt; array(page =&gt; array(title_new = '')));
</code></pre>

<p>Now to display this I would like:</p>

<pre><code>&lt;input type='text' name='&lt;?= $name; ?&gt;' value='&lt;?= $_POST[CONVERT($name)]; ?&gt;'&gt;
</code></pre>

<p>So is there such a <code>CONVERT</code> built in php? Or how could I do it the best way?</p>

<p>*Please note I left out all validation/escaping/htmlentities etc. out for readability</p>
