标签: php
答案 0 :(得分:2)
echo join(' ', str_split('123456789012345678901234567', 5));
答案 1 :(得分:1)
$ text =“123456789012345678901234567”;
$ newtext = wordwrap($ text,5,“\ n”,true);
echo $ newtext;