Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $json_decoded = json_decode($raw_json, true);
- $total_players = 0;
- foreach ($json_decoded as $server)
- {
- $players = $server['players_current'];
- //do other stuff here
- $total_players += $players;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement