Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $url = 'https://t5een01pic.execute-api.ap-northeast-1.amazonaws.com/prod/coronavirus-data';
- $data = file_get_contents($url);
- $characters = json_decode($data, true);
- echo $characters[0]['country'];
- foreach ($characters as $character) {
- echo $character['country'] . "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement