var dump:
"; var_dump($myJSON);
echo "
";
echo "JSON ARRAY:
";
print_r($myJSON);
echo "var_dump(json_decode:
";
*/
var_dump(json_decode($readjson));
//$sname = $readjson->{'server1'};
//echo $sname;
/*
echo "
";
$InfoGT = $Info['GameTags'];
echo $InfoGT;
echo "
";
$sname = $Info['HostName'] ;
$Players = $Info['Players'] ;
$MaxPlayers = $Info['MaxPlayers'] ;
$Secure = $Info['Secure'] ;
$Map = $Info['Map'] ;
$Os = $Info['Os'] ;
$Version = $Info['Version'] ;
$GamePort = $Info['GamePort'] ;
$game = "Dayz" ;
$ping = "666" ;
echo "Hostname: " .$sname . "
";
echo "Players: " .$Players . "
";
echo "MaxPlayers: " .$MaxPlayers . "
";
echo "Secure: " .$Secure . "
";
echo "Map: " .$Map . "
";
echo "Os: " .$Os . "
";
echo "Version: " .$Version . "
";
echo "Port: " .$GamePort . "
";
*/
//preg_grep('/keywords \z map/', explode("\n", $readjson));
?>