string chunk_split ( string $body [, int $chunklen=76 [, string $end="\r\n" ]] )
它用于将字符串拆分成块
Sr.No | 参数 & Description |
---|---|
1 |
body 在Body中,要分块的字符串 |
2 |
chunklen 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-chunk-split.html 来源:LearnFk无涯教程网 它包含有关块长度的信息 |
3 |
end 它包含有关行结束字符串的信息 |
它返回分块的字符串
<?php $str="learnfk"; echo chunk_split($str,1,"."); ?>
这将产生以下输出-
t.u.t.o.r.i.a.l.s.p.o.i.n.t.
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)