How to use an input field name stored as a string as php array indicies
<p>I have an field name that is passed to me via an ajax function which i need to use to lookup values in an existing array. e.g.</p>

<pre><code>$myarray = array(
    'name' =&gt; array(
        '0' =&gt; array(
            'first' =&gt; 'Steve'
        )
    ),
);


$incoming = 'name[0][first]';
</code></pre>

<p>So using the $incoming variable i wanted to get the corresponding data out of the array but cant figure out how to convert the string into the array indicies lookup.</p>

<p>Im trying to come up with a method that will work regardless of the level of nesting in the array.</p>
