Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在存储在数据库中的文本区域框中输入 5000 个单词,然后将其调用到页面上。我该怎么做才能让它停在某个点并从下一行开始旅行?
您可以使用word_wrap
word_wrap
$formated_string = wordwrap($str,1000,"<br>",true);
http://www.php.net/manual/en/function.wordwrap.php