title: Access array using dynamic path
body: <p>I have an issue in accessing the array in php. </p>
  
  <pre><code>$path  = "['a']['b']['c']";
  $value = $array.$path;
  </code></pre>
  
  <p>In the above piece of code I have an multidimensional array named $array.</p>
  
  <p><code>$path</code> is a dynamic value which I would get from database.</p>
  
  <p>Now I want to retrieve the value from $array using $path but I am not able to.</p>
  
  <pre><code>$value = $array.$path
  </code></pre>
  
  <p>returns me</p>
  
  <pre><code>Array['a']['b']['c']
  </code></pre>
  
  <p>rather than the value.</p>
  
  <p>I hope I have explained my question properly.</p>