curl_close

void curl_close(int curld) 

Closes a cURL session handle.

Returns:

Void

Description:

Closes the cURL session referred to by curld , which must be a valid cURL handle created with curl_init. If curld is not a valid cURL handle, a standard PHP warning is issued and nothing happens.

Example:

Close a cURL handle
<?php 
$curld = curl_init("http://www.php.net/"); 
curl_exec($curld); 
curl_close($curld); 
?> 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.