<?php echo mb_strimwidth("Hello World", 0, 10, "..."); ?> 转载于:https://www.cnblogs.com/yuesha/articles/4869092.html