title: PHP reading from JSON
body: <p>I am encountering this weird problem where it runs fine on my desktop PC but not on my mobile or any other PC. </p>
  
  <p>I am getting this JSON String from an API</p>
  
  <pre><code>{"boqqinu":{"id":21842692,"name":"BoQqinu","profileIconId":642,"summonerLevel":30,"revisionDate":1396885332000}}
  </code></pre>
  
  <p>and i am using cURL to get this data and decoding it using php function;</p>
  
  <pre><code>$curl = curl_init();
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($curl, CURLOPT_URL, $url);
      $result = curl_exec($curl);
      $result = utf8_encode($result);
      $obj = json_decode($result, true);
  
      $statuscode = curl_getinfo($curl, CURLINFO_HTTP_CODE); 
      curl_close($curl);
  
      var_dump($obj);
      echo $obj[$sumNameWeb]['id'];
      echo $obj[$sumNameWeb]['summonerLevel'];
  </code></pre>
  
  <p>however the last 2 echo shows nothing on my mobile/friend pc but shows their value on my PC...
  I am not sure what is wrong.. how is this even possible?</p>
  
  <p>Edit- The var dump echos all the data on my pc and my friends pc without a problem..</p>