curl_setopt_array

Supported Versions: PHP 5 >= 5.1.3, PHP 7, PHP 8
Set multiple options for a cURL transfer
<?php curl_setopt_array(CurlHandle $handle, array $options): bool
<?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);