title: How do I Parse the response I get back from CURL?
body: <p>I'm sending some data to an external URL using Curl. The server sends me back a response in a string like this:</p>
  
  <pre><code>trnApproved=0&amp;trnId=10000002&amp;messageId=7&amp;messageText=DECLINE
  </code></pre>
  
  <p>I can assign this string to a variable like this:</p>
  
  <pre><code>$txResult = curl_exec( $ch );
  echo "Result:&lt;BR&gt;"; echo $txResult;
  </code></pre>
  
  <p>But how do I use the data that is sent back? I need a way to get the value of each variable sent back so that I can use it in my PHP script.</p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Thanks.</p>