This topic created in 4236 days ago, the information mentioned may be changed or developed.
一大段文本分割成一定长度的一小段一小段的文本。会有不同种类的语言,比如中文,英文,法文。。。。搜了好久没找到,不知道大家有没有什么好的解决方法。。
3 replies • 2014-10-28 08:01:52 +08:00
 |
|
1
lincanbin Oct 27, 2014
按语言切?那就用正则啊。 例如中文用\x80-\xff 英文用a-zA-Z
|
 |
|
2
vibbow Oct 27, 2014
干嘛不用 mb_substr ?
|
 |
|
3
abelyao Oct 28, 2014 via Android
mb_substr +1…
|