Extracting array from NSMutableData in http response
<p>using iphone sdk 4.0.  The callback for an http request gives data as an NSData object </p>

<pre><code>-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
    // Append the data received to our data
    [theData appendData:data];
}
</code></pre>

<p>In my php script on the server i am returning an array as follows</p>

<pre><code>var_dump($array).
</code></pre>

<p>How do i get my array back from the NSMutableData object 'theData' obove on my iphone.</p>

<p>Thanks</p>
