cvs: phpdoc-da /reference/strings/functions chunk-split.xml

From: Date: Fri, 23 Jul 2004 20:50:38 +0000
Subject: cvs: phpdoc-da /reference/strings/functions chunk-split.xml
Groups: php.doc.da 
Request: Send a blank email to doc-da+get-128@lists.php.net to get a copy of this message
holst Fri Jul 23 16:50:38 2004 EDT Added files: /phpdoc-da/reference/strings/functions chunk-split.xml Log: Initial translation http://cvs.php.net/co.php/phpdoc-da/reference/strings/functions/chunk-split.xml?r=1.1&p=1 Index: phpdoc-da/reference/strings/functions/chunk-split.xml +++ phpdoc-da/reference/strings/functions/chunk-split.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.8 Maintainer: holst Status: ready --> <refentry id="function.chunk-split"> <refnamediv> <refname>chunk_split</refname> <refpurpose>Del en streng ind i mindre fragmenter</refpurpose> </refnamediv> <refsect1> <title>Beskrivelse</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> Kan bruges til at dele en strengn ind i mindre fragmenter hvilket er brugbart for eks. at konvertere <function>base64_encode</function>-data for at matche RFC 2045's betydningslære. Den indsætter <parameter>end</parameter> (standard "\r\n") hver <parameter>chunklen</parameter> tegn (standard 76). Den returnerer den nye streng og efterlader den originale uberørt. <example> <title><function>chunk_split</function> eksempel</title> <programlisting role="php"> <![CDATA[ <?php // formatér $data ved brug af RFC 2045's betydningslære $new_string = chunk_split(base64_encode($data)); ?> ]]> </programlisting> </example> </para> <simpara> Se også <function>str_split</function>, <function>explode</function>, <function>split</function>, <function>wordwrap</function> og <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 -->

« previous php.doc.da (#128) next »