$url = 'https://soccer-football-info.p.rapidapi.com/managers/list/';
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "GET",
"X-RapidAPI-Host: soccer-football-info.p.rapidapi.com",
$response = curl_exec($curl);
$err = curl_error($curl);
$result = json_decode($response);
echo "cURL Error:" . $err;