How to create an array from simple string?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1270016/json-decode-in-php">json decode in php</a>  </p>
</blockquote>



<p><strong>I want to get my id in php, actually without that php sdk files.
So i am using this.</strong></p>

<pre><code>$a = file_get_contents('https://graph.facebook.com/100004304380055...');
echo $a['id'];
</code></pre>

<p>The contents of the response are </p>

<pre><code>{
    "id": "100004304380055",
    "name": "Ayush Mishra"
}
</code></pre>

<p>But it does not returns my <code>id 100004304380055</code>. I thing <code>$a</code> is not an array. I want to know how to make <code>$a</code> an array and then get my id by <code>$a['id']</code>. Please provide the code. Any help will be appreciated.</p>
