mirror of
https://github.com/php/doc-ja.git
synced 2026-03-31 11:32:18 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@189166 c90b9560-bf6c-de11-be94-00142212c4b1
69 lines
2.3 KiB
XML
69 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- splitted from ./ja/functions/strings.xml, last change in rev 1.4 -->
|
|
<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka -->
|
|
<refentry id="function.chunk-split">
|
|
<refnamediv>
|
|
<refname>chunk_split</refname>
|
|
<refpurpose>文字列をより小さな部分に分割する</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>説明</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>chunk_split</methodname>
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
文字列をより小さな部分に分割する際に使用され、
|
|
<function>base64_encode</function> の出力を
|
|
RFC 2045の規約に基づいた出力に変換するといった用途に適しています。
|
|
この関数は、<parameter>chunklen</parameter> (デフォルトは 76)
|
|
文字毎に文字列 <parameter>end</parameter> (デフォルトは "\r\n")
|
|
を挿入します。変換前の元の文字列はそのままとし、
|
|
変換後の新しい文字列を返します。
|
|
<example>
|
|
<title><function>chunk_split</function>の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// RFC 2045 に基づき $data をフォーマットします
|
|
$new_string = chunk_split(base64_encode($data));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<simpara>
|
|
<function>str_split</function>,
|
|
<function>explode</function>, <function>split</function>,
|
|
<function>wordwrap</function>,
|
|
<ulink url="&url.rfc;2045">RFC 2045</ulink>
|
|
も参照ください。
|
|
</simpara>
|
|
</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:"../../../../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
|
|
-->
|