PHP字符串处理的10个简单方法(2)


$speech = "Four score and seven years ago our fathers brought forth, upon this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.";
echo wordwrap($speech, 30);


执行上面的代码,结果是:

Four score and seven years ago our fathers brought forth, upon this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

原文地址:
原文名:10 Easy Solutions for PHP String Manipulation
作者:W. Jason Gilmore

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2b34699f1b7a892f864da65f926d82c6.html