php截取字符并保留完整单词

技术运维PHP
<?php 
$desc = substr($str, 0, 115) . " ";
echo substr($desc, 0, strrpos($desc, ' '));
?>...

Post Comment