I am not understanding how to select a part of the string in php
<p>I have the following array in my php function.</p>

<pre><code>Array
(
    [0] =&gt; {"conn_id":"2"}
    [1] =&gt; {"conn_id":"5"}
)
</code></pre>

<p>Now I wish to select only the id part. i.e. 2 or 5. I tried to use preg_split in a foreach loop. But I am not able to use it correctly.
Thank you</p>
