How to read a POST response and look for specifics
<p>I am coding a script to read the response given from a payment gateway after a transaction is done.
<a href="http://docs.merchee.com/api/push-notifications/index.html" rel="nofollow">http://docs.merchee.com/api/push-notifications/index.html</a></p>

<p>The example data I am getting is</p>

<pre><code>$received_values = "
    status_code PAID
    subtotal 10
    success_redirect http://site.com/thanks
    tax_total 0
    total_price 10
    transaction_amount 10
    transaction_date 07/24/2012
    transaction_nmb 101888
    transaction_time 12:43:52
    zip 12345 
";
</code></pre>

<p>I am specifically looking for the lines <code>transaction_nmb</code> and <code>status_code</code>.</p>

<p>I'm thinking I do something like so:</p>

<pre><code>$received_values = (array) stripslashes_deep( $_POST );
</code></pre>

<p>But am stuck on how I should go about confirming it.. <code>in_array</code>?</p>

<p>Thank you.</p>
