$string = "This is my page content. This text will be paginated.";
$pageNo = "0";
$pieceLength = "12";
$preparedForPrint = substr($string,$pageNo,$pieceLength);
我想要做的是,如果12字符是一个字内(第12字符不是一个空格),我想移动我的光标“,直到它找到一个空间的回报串尽管实际上超过12个字符。我怎样才能做到这一点?感谢PHP分页脚本