我需要一个很好的快速函数,通过UTF8支持将字符串缩短到设定的长度.在末尾添加尾随'...'是一个加号.有人可以帮忙吗?
php string truncate utf-8
php ×1
string ×1
truncate ×1
utf-8 ×1