Player Stats

"; echo " Playername Deaths Kills Human Kills Matches K/D (Human) K/D (All) "; foreach ($players_matches as $player_data) { if (isset($player_data['updated'])) { continue; // Skip this iteration and move to the next } $player_name = $player_data['playername']; $deaths = number_format($player_data['deaths'], 2, ',', ''); $kills = number_format($player_data['kills'], 2, ',', ''); $humankills = number_format($player_data['humankills'], 2, ',', ''); $matches = $player_data['matches']; $KD_H = ($player_data['KD_H'] == "Infinity") ? "∞" : number_format($player_data['KD_H'], 2, ',', ''); $KD_ALL = ($player_data['KD_ALL'] == "Infinity") ? "∞" : number_format($player_data['KD_ALL'], 2, ',', ''); echo " $player_name $deaths $kills $humankills $matches $KD_H $KD_ALL "; } echo ""; echo "Last update: "; foreach ($players_matches as $player_data) { if (isset($player_data['updated'])) { echo $player_data['updated']; break; // Once found, exit the loop } } ?>