标签:width lse title 品牌 int cut ali tps target
$str [, int $width = 75 [, string $break = "\n" [, bool $cut = FALSE ]]] ) : string使用字符串断点将字符串打断为指定数量的字串。直线电机品牌
str输入字符串。
width列宽度。
break使用可选的 break 参数打断字符串。
cut如果 cut 设置为 TRUE,字符串总是在指定的 width 或者之前位置被打断。因此,如果有的单词宽度超过了给定的宽度,它将被分隔开来。(参见第二个范例)。 当它是 FALSE ,函数不会分割单词,哪怕 width 小于单词宽度。
返回打断后的字符串。
标签:width lse title 品牌 int cut ali tps target
原文地址:https://www.cnblogs.com/furuihua/p/12981294.html