Skip to content

Commit 98ee565

Browse files
authored
Update curl-escape.xml (#4948)
The `curl_close()` call has been removed — the fix was there, just not the comment :)
1 parent f4ff30a commit 98ee565

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reference/curl/functions/curl-escape.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<programlisting role="php">
6767
<![CDATA[
6868
<?php
69+
6970
// Create a curl handle
7071
$ch = curl_init();
7172
@@ -77,10 +78,11 @@ $location = curl_escape($ch, 'Hofbräuhaus / München');
7778
$url = "http://example.com/add_location.php?location={$location}";
7879
// Result: http://example.com/add_location.php?location=Hofbr%C3%A4uhaus%20%2F%20M%C3%BCnchen
7980
80-
// Send HTTP request and close the handle
81+
// Set options and send HTTP request
8182
curl_setopt($ch, CURLOPT_URL, $url);
8283
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
8384
curl_exec($ch);
85+
8486
?>
8587
]]>
8688
</programlisting>

0 commit comments

Comments
 (0)