- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
<?php
$id = '76561198050571807';
$key = '36A35217F21921A116FB6A83455C10C2';
$link = file_get_contents('http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=36A35217F21921A116FB6A83455C10C2&steamid=76561198050571807&format=json');
$myarray = json_decode($link, true);
print $myarray['response']['game_count'][0];
?>