$url = 'https://soccerfootballinfo.rapidapi.com/v1/matches/by/basic/?c=CHAMPIOSHIP_ID';
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => "GET",
"x-rapidapi-host: soccerfootballinfo.rapidapi.com",
$response = curl_exec($curl);
$error = curl_error($curl);
$result = json_decode($response);
echo "cURL Error:" . $err;