Php-function-chunk-split
提供:Dev Guides
PHP-関数チャンク分割
構文
string chunk_split ( string $body [, int $chunklen = 76 [, string $end = "\r\n" ]] )
定義と使い方
文字列をチャンクに分割するために使用されます
戻り値
チャンク文字列を返します
パラメーター
Sr.No | Parameters & Description |
---|---|
1 |
body 本文では、チャンクされる文字列 |
2 |
chunklen チャンク長に関する情報が含まれています |
3 |
end 行末文字列に関する情報が含まれています |
例
次の例を試してください
<?php
$str = "finddevguides";
echo chunk_split($str,1,".");
?>
これにより、次の結果が生成されます–
t.u.t.o.r.i.a.l.s.p.o.i.n.t.