title: Convert a string into array PHP
body: <p>Sometime back I was getting alot of data via some API and I saved it into a flat file doing a simple var_dump or print_r. Now I am looking to process the data and each line looks like:</p>
  
  <blockquote>
    <p>" 'middle_initial' => '',  'sid' => '1419843',  'fixed' => 'Y', 
    'cart_weight' => '0',  'key' => 'ABCD',  'state' => 'XX',  'last_name'
    => 'MNOP',  'email' => 'abc@example.com',  'city' => 'London', 
    'street_address' => 'Sample', 'first_name' => 'Sparsh',"</p>
  </blockquote>
  
  <p>Now I need to get this data back into an array format. Is there a way I can do that?</p>