Parsing plain text into associative array in PHP
<p>I've been working on this but haven't found any solution yet. I need to parse such string into associative array (PHP) </p>

<blockquote>
  <p>Result: ssl_card_number=35*<strong>**</strong>*0000 ssl_exp_date=1212
  ssl_amount=33.55 ssl_invoice_number=0 ssl_description=
  ssl_company=Some Company ssl_first_name=John ssl_last_name=Cater
  ssl_avs_address=Test St. ssl_address2= ssl_city=Sandy ssl_state=Utah
  ssl_avs_zip=84075 ssl_country=United States ssl_phone=
  ssl_email=johncarter@gmail.com ssl_result=0
  ssl_result_message=APPROVED
  ssl_txn_id=00000000-0000-0000-0000-00000000000
  ssl_approval_code=123456 ssl_cvv2_response=P ssl_avs_response=X
  ssl_account_balance=0.00 ssl_txn_time=03/14/2012 06:58:27 PM</p>
</blockquote>

<p>This string is what's coming from Merchant Service (the one above contains fake data) so I need to parse it out and reach the values like this</p>

<p><code>$card_number = $parsed["ssl_card_number"];</code></p>

<p>How can I accomplish it? Note: All the keys start with <code>ssl_</code> it can be helpful somewhere maybe.</p>
