Extract keys from string containing multiple keys
<p>I'm searching for a way to easly extract a string containing multiple keys. The string is a result form a curl header response</p>

<pre><code>echo $response['body'];
// status=2 reason=Invalid tariff/currency
</code></pre>

<p>Desired result:</p>

<pre><code>$status == '2';
$reason == 'Invalid tariff/currency';
</code></pre>

<p>or</p>

<pre><code>array (
    [status] =&gt; '2'
    [reason] =&gt; 'Invalid tariff/currency'
)
</code></pre>
