title: multidimension array
body: <p>I want to create a multidimensional array based on a string.</p>
  
  <p>the string has value <code>$string="1/2/3"</code></p>
  
  <p>and i want to assign <code>$array[1][2][3]=somethimg</code></p>
  
  <p>actually the index of the array are described inside the $string</p>
  
  <p>The $string has not same depth.</p>
  
  <p>For example may be $string="1/2 OR $string="1/2/3/4/5  OR $string="1/2/3/5/7/8/9/9/6
  so the number of keys in the multidimensional array is not standard</p>
  
  <p>Any ideas.</p>