RE: [PHP] wordwrap() vs chunk_split()

From: Date: Wed, 30 Aug 2000 17:13:25 +0000
Subject: RE: [PHP] wordwrap() vs chunk_split()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14446@lists.php.net to get a copy of this message
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 >

« previous php.general (#14446) next »