title: Dynamic variable name for a multidimentional array
body: <p>On my left hand I've got this "key" :
  <code>localisation.adresse.commune.id</code>
  and many other values like this one, wich are dynamics (i can't use them literraly in my code as i don't know what they will be).</p>
  
  <p>On the other hand i have an array like this (comes fron a json decoded) :</p>
  
  <pre><code>    Array
          (
              [localisation] =&gt; Array
                  (
                      [adresse] =&gt; Array
                          (
                              [adresse1] =&gt; Le Chatelard
                              [codePostal] =&gt; 42820
                              [etat] =&gt; France
                              [commune] =&gt; Array
                                  (
                                      [id] =&gt; 16418
                                  )
  
                          )
  
                  )
  
          )
  </code></pre>
  
  <p>I can't list all the "keys" i'm going to exploit, so I need to automatically get the value of $object['localisation']['adresse']['commune']['id'].</p>
  
  <p>I've tried this but it does not work :</p>
  
  <pre><code>$test['localisation']['adresse']['commune']['id'] = 16418 ;
  $var = '$test[\'localisation\'][\'adresse\'][\'commune\'][\'id\']' ;
  echo $var ; // $test['localisation']['adresse']['commune']['id']
  var_dump($$var) ; // NULL Notice: Undefined variable: $test['localisation']['adresse']['commune']['id']
  var_dump(${$var}) ; // NULL Notice: Undefined variable: $test['localisation']['adresse']['commune']['id']
  </code></pre>
  
  <p>I suppose it's looking for a simple variable of a complicated name, instead of looking at a multidimentional array, but i don't know how i can do it...</p>
  
  <p>Thans for your help !</p>