how to get specific value from php array
<p>I have tried multiple solutions but none seems to work for me Basically I am pulling facebook page likes and it puts them in an array and then i want to display a specific value from that array but i am not able to do that no matter what, below is my code:</p>

<pre><code>&lt;?php

$url = 'https://graph.facebook.com/22992739859?fields=name,fan_count&amp;access_token=my access token';

$t = file_get_contents($url);

preg_match_all('!\d+!', $t, $matches);

print_r($matches [0]);

?&gt;
</code></pre>

<p>and the output is </p>

<pre><code>Array ( [0] =&gt; 158060 [1] =&gt; 22992739859 )
</code></pre>

<p>I just want to get rid of the all the text except the value after [0]</p>

<p>is there anyway i can do that? I tried several solutions but none of them seemed to work for me.</p>

<p>Thanks</p>