RE: [PHP] wordwrap() vs chunk_split()
| From: | John McKown | Date: | Wed, 30 Aug 2000 17:48:36 +0000 |
| Subject: | RE: [PHP] wordwrap() vs chunk_split() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14451@lists.php.net to get a copy of this message | ||
OOPS, I double checked the code. The break at the previous closest blank
IF ONE EXISTS! If there are no blanks at or before the split point, then
it will break at the first blank AFTER the split point. If there are no
blanks, it will not be split at all.
On Wed, 30 Aug 2000, John McKown wrote:
> >From my quick look at the code for wordwrap(), it will split at the
> PREVIOUS closest blank. So if you want to wordwrap() with a length of 30,
> and there are blanks at 25 and 35, then the line would break at 25.
>
> John
>
> On Wed, 30 Aug 2000, Richard Heyes wrote:
>
> > > wordwrap() will only split a line at a blank character. This
> > > blank must be
> > > at or before the specified output length.
> >
> > If the character at the split point is not blank will it split at the
> > previous closest blank, or will it carry on to the next split point?
> >
> > Thanks!
> > --
> > Richard Heyes
> >
>
>
>