Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $api = file_get_contents('https://api.betsapi.com/v1/bet365/result?token=5590-GV2STwo78vd0I1&event_id=76065865');
- $json = json_decode($api);
- $results = $json->results[0];
- // Vamos ler os scores
- foreach($results->scores as $key => $value) {
- $key = $key;
- $home = $value->home;
- $away = $value->away;
- echo "Key: {$key} - Home: {$home} - Away: {$away}";
- echo "<br><br>";
- }
- echo "hello";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement