title: php convert $str = '[0=>"hello",1=>"world"]'; into indexed array
body: <p>I have a string stored on my database in the following format:</p>
  
  <pre><code>$str = '[0=&gt;"hello",1=&gt;"world"]';
  </code></pre>
  
  <p>I wish to convert this into an array which would have the 0,"hello" key-value pair, 1,"world" key-value pair.</p>
  
  <p>If there is a better way to format and store the string to make the conversion to array easier I would be open to that answer.</p>
  
  <p>Thanks for your help
  Jordan</p>