(PHP 4 >= 4.0.2)

curl_close -- Close a CURL session


void curl_close ( resource ch)

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

例子 1. 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().

虎的笑话 虎的成语 虎的歇后语