Steam api player ingame function PHP

To check if a a steam profile is ingame and if so which game use the following function as a guide:   function ingame($steamid) { $data = json_decode(file_get_contents(“https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=YOURAPIKEY&steamids=” . $steamid…