title: Riot games json array outputs blank
body: <p>Im trying to test a script so I can get ranked info from League of Legends, but when I run the script, it outputs as blank. No errors or anything. Just a blank page. It is a simple script. I don't know why its outputting as blank. Any help? Thanks a bunch!</p>
  
  <pre><code>// lets get all le info
  // ranked stats
  $json = json_decode('https://prod.api.pvp.net/api/lol/na/v2.3/league/by-summoner/35409868/entry?api_key=*snipped*', true);
  // unpack the info
  echo $json['rank'];
  echo $json['tier'];
  echo $json['wins'];
  echo $json['leaguePoints'];
  </code></pre>
  
  <p>For refrence, here is the array:
  [{"playerOrTeamId":"35409868","playerOrTeamName":"<em>snipped</em>","leagueName":"Malzahar's Gladiators","queueType":"RANKED_SOLO_5x5","tier":"SILVER","rank":"IV","leaguePoints":44,"wins":22,"isHotStreak":false,"isVeteran":false,"isFreshBlood":false,"isInactive":false,"lastPlayed":-1}]</p>