mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
de75166ea7
commit
764683bbdd
1 changed files with 42 additions and 45 deletions
|
@ -1,11 +1,11 @@
|
|||
<reference id="ref.url">
|
||||
<title>URL functions</title>
|
||||
<title>URL Functions</title>
|
||||
<titleabbrev>URLs</titleabbrev>
|
||||
|
||||
<refentry id="function.base64-decode">
|
||||
<refnamediv>
|
||||
<refname>base64_decode</refname>
|
||||
<refpurpose>decodes data encoded with MIME base64</refpurpose>
|
||||
<refpurpose>Decodes data encoded with MIME base64</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
@ -14,22 +14,21 @@
|
|||
<paramdef>string <parameter>encoded_data</parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>base64_decode</function> decodes
|
||||
<function>Base64_decode</function> decodes
|
||||
<parameter>encoded_data</parameter> and returns the original
|
||||
data. The returned data may be binary.</para>
|
||||
|
||||
data. The returned data may be binary.
|
||||
</para>
|
||||
<para>
|
||||
See also:
|
||||
<function>base64_encode</function>,
|
||||
RFC-2045 section 6.8.</para>
|
||||
|
||||
See also: <function>base64_encode</function>, RFC-2045 section
|
||||
6.8.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.base64-encode">
|
||||
<refnamediv>
|
||||
<refname>base64_encode</refname>
|
||||
<refpurpose>encodes data with MIME base64</refpurpose>
|
||||
<refpurpose>Encodes data with MIME base64</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
@ -38,28 +37,27 @@
|
|||
<paramdef>string <parameter>data</parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
<function>base64_encode</function> returns
|
||||
<function>Base64_encode</function> returns
|
||||
<parameter>data</parameter> 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.</para>
|
||||
|
||||
transport layers that are not 8-bit clean, such as mail bodies.
|
||||
</para>
|
||||
<para>
|
||||
Base64-encoded data takes about 33% more space than the original
|
||||
data.</para>
|
||||
|
||||
<para>
|
||||
See also:
|
||||
<function>base64_decode</function>,
|
||||
<function>chunk_split</function>,
|
||||
RFC-2045 section 6.8.</para>
|
||||
|
||||
RFC-2045 section 6.8.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.parse-url">
|
||||
<refnamediv>
|
||||
<refname>parse_url</refname>
|
||||
<refpurpose>parse a URL and return its components</refpurpose>
|
||||
<refpurpose>Parse a URL and return its components</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
@ -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".</para>
|
||||
"fragment".
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.urldecode">
|
||||
<refnamediv>
|
||||
<refname>urldecode</refname>
|
||||
<refpurpose>decodes URL-encoded string</refpurpose>
|
||||
<refpurpose>Decodes URL-encoded string</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
|
@ -91,24 +89,25 @@
|
|||
Decodes any <literal>%<replaceable>##</replaceable></literal>
|
||||
encoding in the given string. The decoded string is returned.
|
||||
<example>
|
||||
<title>urldecode() example</title>
|
||||
<programlisting>
|
||||
<title><function>Urldecode</function> example</title>
|
||||
<programlisting role="php">
|
||||
$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++;
|
||||
}
|
||||
</programlisting></example></para>
|
||||
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>urlencode</function></para>
|
||||
See also <function>urlencode</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
<refentry id="function.urlencode">
|
||||
<refnamediv>
|
||||
<refname>urlencode</refname>
|
||||
|
@ -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
|
||||
<literal>application/x-www-form-urlencoded</literal> media type.
|
||||
This differs from the RFC1738 encoding (see <function>rawurlencode</function> ) 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
|
||||
<function>rawurlencode</function>) 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:
|
||||
<example>
|
||||
<title>urlencode() example</title>
|
||||
<programlisting>
|
||||
<title><function>Urlencode</function> example</title>
|
||||
<programlisting role="php">
|
||||
echo '<A HREF="mycgi?foo=', urlencode ($userinput), '">';
|
||||
</programlisting></example></para>
|
||||
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>urldecode</function></para>
|
||||
|
||||
See also <function>urldecode</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
||||
|
||||
</reference>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@ -160,7 +157,7 @@ sgml-always-quote-attributes:t
|
|||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../manual.ced"
|
||||
sgml-default-dtd-file:"../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
|
|
Loading…
Reference in a new issue