title: Convert PHP array string into an array
body: <p>I have an array:</p>
  
  <pre><code>$myArray = array('key1'=&gt;'value1', 'key2'=&gt;'value2');
  </code></pre>
  
  <p>I save it as a variable:</p>
  
  <pre><code>$fileContents = var_dump($myArray);
  </code></pre>
  
  <p>How can convert the variable back to use as a regular array?</p>
  
  <pre><code>echo $fileContents[0]; //output: value1
  echo $fileContents[1]; //output: value2
  </code></pre>