title: PHP: JSON decoding problem
body: <pre><code>&lt;?php
  $handle = fopen("https://graph.facebook.com/search?q=sinanoezcan@hotmail.com&amp;type=user&amp;access_token=2227472222|2.mLWDqcUsekDYK_FQQXYnHw__.3600.1279803900-100001310000000|YxS1eGhjx2rpNYzzzzzzzLrfb5hMc.", "rb");
  $json = stream_get_contents($handle);
  fclose($handle);
  echo $json;
  $obj = json_decode($json);
  print $obj-&gt;{'id'};
  ?&gt;
  </code></pre>
  
  <p>Here is the JSON: <code>{"data":[{"name":"Sinan \u00d6zcan","id":"610914868"}]}</code></p>
  
  <p>It echos the JSON but I was unable to print the id.</p>
  
  <p>Also I tried:</p>
  
  <pre><code>&lt;?php
  $obj = json_decode($json);
  $obj = $obj-&gt;{'data'};
  print $obj-&gt;{'id'};
  ?&gt;
  </code></pre>