{
"area": {
"id": 2072,
"name": "England",
"code": "ENG",
"flag": "https://crests.football-data.org/770.svg"
},
"id": 2021,
"name": "Premier League",
"code": "PL",
"type": "LEAGUE",
"emblem": "https://crests.football-data.org/PL.png",
"currentSeason": {
"id": 733,
"startDate": "2021-08-13",
"endDate": "2022-05-22",
"currentMatchday": 37,
"winner": null,
"stages": [
"REGULAR_SEASON"
]
},
"seasons": [
{
<pre>
<?php
print_r(json_decode(json_encode($response), true));
?>
</pre>
......
$response = file_get_contents($uri, false, $stream_context);
$matches = json_decode($response);
//var_dump($matches);
?>
<pre>
<?php var_dump($matches); ?>
</pre>
object(stdClass)#1 (4) {
["filters"]=>
object(stdClass)#2 (2) {
["season"]=>
string(4) "2022"
["matchday"]=>
string(2) "22"
}
["resultSet"]=>
object(stdClass)#3 (4) {
["count"]=>
int(10)
["first"]=>
string(10) "2023-02-03"
["last"]=>
string(10) "2023-02-05"
["played"]=>
int(10)
}