-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathchunk-split.xml
More file actions
63 lines (62 loc) · 2.33 KB
/
chunk-split.xml
File metadata and controls
63 lines (62 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: n/a Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
<refentry xml:id="function.chunk-split" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>chunk_split</refname>
<refpurpose>Divide una stringa in segmento più piccoli</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</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>
Questa funzione può essere utilizzata per suddividere una stringa in segmenti più ridotti, per
possono essere utili, ad esempio, nel convertire l'output della funzione <function>base64_encode</function> in modo
da aderire alle specifiche indicate nella RFC 2045. La funzione inserisce <parameter>end</parameter> (il default
è "\r\n") ad ogni <parameter>chunklen</parameter> caratteri (default è
76). La funzione restituisce una nuova stringa lasciando inalterata la stringa originale.
<example>
<title>Esempio di uso di <function>chunk_split</function></title>
<programlisting role="php">
<![CDATA[
<?php
// format $data using RFC 2045 semantics
$new_string = chunk_split(base64_encode($data));
?>
]]>
</programlisting>
</example>
</para>
<simpara>
Vedere anche <function>str_split</function>,
<function>explode</function>, <function>split</function>,
<function>wordwrap</function> e
<link xlink:href="&url.rfc;2045">RFC 2045</link>.
</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:"~/.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
-->