From 764683bbddb0b6843db76f7ef534f3d2218ace8d Mon Sep 17 00:00:00 2001 From: Egon Schmid Date: Tue, 1 Feb 2000 08:25:03 +0000 Subject: [PATCH] Done some more capitalization. If it isn't correct, I will reverse it. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@19036 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/url.xml | 87 +++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/functions/url.xml b/functions/url.xml index 84a8ad9e84..70430d062c 100644 --- a/functions/url.xml +++ b/functions/url.xml @@ -1,11 +1,11 @@ - URL functions + URL Functions URLs base64_decode - decodes data encoded with MIME base64 + Decodes data encoded with MIME base64 Description @@ -14,22 +14,21 @@ string encoded_data - base64_decode decodes + Base64_decode decodes encoded_data and returns the original - data. The returned data may be binary. - + data. The returned data may be binary. + - See also: - base64_encode, - RFC-2045 section 6.8. - + See also: base64_encode, RFC-2045 section + 6.8. + base64_encode - encodes data with MIME base64 + Encodes data with MIME base64 Description @@ -38,28 +37,27 @@ string data - base64_encode returns + Base64_encode returns data encoded with base64. This encoding is designed to make binary data survive transport through - transport layers that are not 8-bit clean, such as mail bodies. - + transport layers that are not 8-bit clean, such as mail bodies. + Base64-encoded data takes about 33% more space than the original data. - See also: base64_decode, chunk_split, - RFC-2045 section 6.8. - + RFC-2045 section 6.8. + parse_url - parse a URL and return its components + Parse a URL and return its components Description @@ -71,15 +69,15 @@ This function returns an associative array returning any of the various components of the URL that are present. This includes the "scheme", "host", "port", "user", "pass", "path", "query", and - "fragment". + "fragment". + - urldecode - decodes URL-encoded string + Decodes URL-encoded string Description @@ -91,24 +89,25 @@ Decodes any %## encoding in the given string. The decoded string is returned. - urldecode() example - + <function>Urldecode</function> example + $a = split ('&', $querystring); $i = 0; while ($i < count ($a)) { - $b = split ('=', $a [$i]); - echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])), - ' is ', htmlspecialchars (urldecode ($b [1])), "<BR>"; - $i++; + $b = split ('=', $a [$i]); + echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])), + ' is ', htmlspecialchars (urldecode ($b [1])), "<BR>"; + $i++; } - - + + + - See also urlencode + See also urlencode. + - urlencode @@ -128,26 +127,24 @@ while ($i < count ($a)) { same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type. - This differs from the RFC1738 encoding (see rawurlencode ) in that - for historical reasons, spaces are encoded as plus (+ ) signs. - This function is convenient when encoding a string to be used in - a query part of an URL, as a convenient way to pass variables to - the next page: - + This differs from the RFC1738 encoding (see + rawurlencode) in that for historical + reasons, spaces are encoded as plus (+) signs. This function is + convenient when encoding a string to be used in a query part of + an URL, as a convenient way to pass variables to the next page: - urlencode() example - + <function>Urlencode</function> example + echo '<A HREF="mycgi?foo=', urlencode ($userinput), '">'; - - + + + - See also urldecode - + See also urldecode. + - -