mirror of
https://github.com/php/doc-de.git
synced 2026-03-29 18:52:13 +02:00
------------------------------------ addslashes.xml 1.3 bin2hex.xml 1.2 chop.xml 1.3 chr.xml 1.4 chunk-split.xml 1.8 convert-cyr-string.xml 1.3 git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@185262 c90b9560-bf6c-de11-be94-00142212c4b1
67 lines
2.2 KiB
XML
67 lines
2.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- EN-Revision: 1.8 Maintainer: sammywg Status: working -->
|
|
<refentry id="function.chunk-split">
|
|
<refnamediv>
|
|
<refname>chunk_split</refname>
|
|
<refpurpose>Zerlegt einen String in Teile gleicher Länge</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>chunk_split</methodname>
|
|
<methodparam><type>string</type><parameter>body</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Kann für die Aufteilung eines Strings in kleinere Stücke verwendet
|
|
werden. Dies ist z.B. hilfreich bei der Umwandlung von
|
|
<function>base64_encode</function>-Ausgaben, die RFC 2045 entsprechen
|
|
müssen. Die Funktion fügt die in <parameter>end</parameter> angegebene
|
|
Zeichenkette (standardmäßig "\r\n") nach jeweils <parameter>chunklen</parameter>
|
|
Zeichen (Vorgabewert 76 Zeichen) in den ursprünglichen String ein.
|
|
Zurückgegeben wird der veränderte String, die ursprüngliche Zeichenkette
|
|
bleibt unverändert.
|
|
<example>
|
|
<title><function>chunk_split</function> Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// formatiert $data unter Beachtung von RFC 2045
|
|
$neuer_string = chunk_split(base64_encode($data));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<simpara>
|
|
Siehe auch <function>str_split</function>,
|
|
<function>explode</function>, <function>split</function>,
|
|
<function>wordwrap</function> und
|
|
<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
|
|
-->
|