Skip to content

Commit 8c86446

Browse files
committed
Update curl-escape.xml
php/doc-en@98ee565
1 parent 31a0a2e commit 8c86446

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/curl/functions/curl-escape.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: fc9a0a8b29a7a099998bdd71fe5350a10b18fe62 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 98ee565bfbea26d2a9c8f8a8707f0403603f719e Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="function.curl-escape" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -68,6 +68,7 @@
6868
<programlisting role="php">
6969
<![CDATA[
7070
<?php
71+
7172
// curl ハンドルを作成します
7273
$ch = curl_init();
7374
@@ -79,10 +80,11 @@ $location = curl_escape($ch, 'Hofbräuhaus / München');
7980
$url = "http://example.com/add_location.php?location={$location}";
8081
// その結果: http://example.com/add_location.php?location=Hofbr%C3%A4uhaus%20%2F%20M%C3%BCnchen
8182
82-
// HTTP リクエストを送信し、ハンドルを閉じます
83+
// オプションを設定し、HTTP リクエストを送信します
8384
curl_setopt($ch, CURLOPT_URL, $url);
8485
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
8586
curl_exec($ch);
87+
8688
?>
8789
]]>
8890
</programlisting>

0 commit comments

Comments
 (0)