curl_close

Supported Versions: PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
Close a cURL session
<?php curl_close(CurlHandle $handle): void
<?php         $ch = curl_init($url);

        curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php         $ch = curl_init($url);

        curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php         $ch = curl_init($url);

        curl_setopt_array($ch, $options);

        curl_exec($ch);

        curl_close($ch);

        fclose($fp);

    }
<?php     private function closeCurlHandleNext(): void

    {

        if ($this->curlHandleNext !== null) {

            curl_close($this->curlHandleNext);

            $this->curlHandleNext = null;

        }

    }
<?php     private function closeCurlHandleResult(): void

    {

        if ($this->curlHandleResult !== null) {

            curl_close($this->curlHandleResult);

            $this->curlHandleResult = null;

        }

    }