php convert string with new lines into array?
<p>I am getting data from an API and the resulting string is</p>

<pre><code>[RESPONSE]
PROPERTY[STATUS][0]=ACTIVE
PROPERTY[REGISTRATIONEXPIRATIONDATE][0]=2012-04-04 19:48:48
DESCRIPTION=Command completed successfully
QUEUETIME=0
CODE=200
RUNTIME=0.352

QUEUETIME=0
RUNTIME=0.8

EOF
</code></pre>

<p>I am trying to convert this into an array like</p>

<pre><code>Array(
['PROPERTY[STATUS][0]'] =&gt; ACTIVE,
['CODE'] =&gt; 200,
...
);
</code></pre>

<p>So I am trying to explode it using the resulting file_get_content function with an explode like</p>

<pre><code>$output = explode('=',file_get_contents($url));
</code></pre>

<p>But the problem is the returning values are not always returned in the same order, so I need to have it like <code>$array['CODE'] = 200</code>, and <code>$array['RUNTIME'] = 0.352</code> however there does not seem to be any kind of new line characters? I tried <code>\r\n, \n, &lt;br&gt;, \r\n\r\n</code> in the explode function to no avail. But there is new lines in both notepad and the browser.</p>

<p>So my question is there some way to determine if a string is on a new line or determine what the character forcing the new line is? If not is there some other way I could read this into an array?</p>
