chunk_split
文字列をより小さな部分に分割する
&reftitle.description;
stringchunk_split
stringstring
intlength76
stringseparator"\r\n"
文字列をより小さな部分に分割する際に使用され、
base64_encode の出力を
RFC 2045の規約に基づいた出力に変換するといった用途に適しています。
この関数は、length
文字毎に文字列 separator を挿入します。
&reftitle.parameters;
string
分割したい文字列。
length
各部分の長さ。
separator
行末の区切り。
&reftitle.returnvalues;
分割した文字列を返します。
&reftitle.examples;
chunk_split の例
]]>
&reftitle.seealso;
str_split
explode
wordwrap
RFC 2045