Close a CURL session (PHP 4 >= 4.0.2, PHP 5)
void curl_close ( resource ch )

This function closes a CURL session and frees all resources. The CURL handle, ch, is also deleted.

例 391.  Initializing a new CURL session and fetching a webpage

// create a new curl resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "");
curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser

// close curl resource, and free up system resources

See also: curl_init().