1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-28 02:23:18 +02:00
Files
archived-doc-ja/reference/strings/functions/str-rot13.xml
T
2020-12-05 21:54:55 +00:00

91 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e095023e408c8cb6378ae16bb6870343a3946919 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka,mumumu -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.str-rot13">
<refnamediv>
<refname>str_rot13</refname>
<refpurpose>文字列に rot13 変換を行う</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>str_rot13</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
</methodsynopsis>
<para>
引数 <parameter>string</parameter> に対して ROT13 変換を施し、
その結果の文字列を返します。
</para>
<para>
ROT13 は、各文字をアルファベット順に 13 文字シフトさせ、
アルファベット以外の文字はそのままとするエンコードを行います。
エンコードとデコードは同じ関数で行われます。
引数にエンコードされた文字列を指定した場合には、元の文字列が返されます。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>string</parameter></term>
<listitem>
<para>
入力文字列。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
指定した文字列を ROT13 変換した結果を返します。
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>str_rot13</function> の例</title>
<programlisting role="php">
<![CDATA[
<?php
echo str_rot13('PHP 4.3.0'); // CUC 4.3.0
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->