I have the following code in my PHP
:
<?php
$url = "https://api.cartolafc.globo.com/mercado/destaques";
$response = file_get_contents($url);
$jogadores = json_decode($response,true);
It should return the file json
, where I get the information and put it on another page and it worked until a while back, but it stopped. and absolutely nothing has been changed.
How can I resolve this problem?
When I use:
var_dump(json_decode($response, true));
It only returns NULL