相关疑难解决方法(0)

没有自动换行的str_split

我在找最快的解决方案,来字符串成几部分,不.

$strText = "The quick brown fox jumps over the lazy dog";

$arrSplit = str_split($strText, 12);

// result: array("The quick br","own fox jump","s over the l","azy dog");
// better: array("The quick","brown fox","jumps over the","lazy dog");
Run Code Online (Sandbox Code Playgroud)

php string split word-wrap

6
推荐指数
1
解决办法
9141
查看次数

标签 统计

php ×1

split ×1

string ×1

word-wrap ×1