Re: code with comments is here
| From: | Jason Wong | Date: | Wed, 24 Apr 2002 18:04:03 +0000 |
| Subject: | Re: code with comments is here | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94426@lists.php.net to get a copy of this message | ||
On Thursday 25 April 2002 00:14, Kirk Babb wrote:
> I have a feeling I am making this much harder than it really is! I'm a new
> programmer, and I am trying to output "x" number of characters per line
> without splitting up the words in the string. I want to approach as best
> as possible a certain number of characters per line, let's say 80
> characters, and then cycle through the remaining parts of the array to
> reconstruct the string in the same manner.
Have you tried the wordwrap() function?
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
There's nothing worse for your business than extra Santa Clauses
smoking in the men's room.
-- W. Bossert
*/