curl_reset

PHP 5 >= 5.5.0, PHP 7, PHP 8
curl_reset - Reset all options of a libcurl session handle
Manual
Code Examples

curl_reset( CurlHandle$handle ): void

This function re-initializes all options set on the given cURL handle to the default values.

Parameters

handle

A cURL handle returned by curl_init.

Return Values

No value is returned.

Notes

Note:

curl_reset also resets the URL given as the curl_init parameter.

Changelog

Version Description
8.0.0 handle expects a CurlHandle instance now; previously, a resource was expected.

Related Functions

Example of curl_reset

Show all examples for curl_reset

PHP Version: