Re: Fix for wordwrap()
| From: | Jedi/Sector One | Date: | Fri, 07 Mar 2003 07:20:19 +0000 |
| Subject: | Re: Fix for wordwrap() | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94874@lists.php.net to get a copy of this message | ||
On Thu, Mar 06, 2003 at 09:53:22AM -0500, Ilia A. wrote:
> you are hardcoding the 'break' as ' ',
> meaning that no other character is considered a space hence
The documentation states that 'break' is what is used to break lines, not
what is considered a space.
Simple try with PHP 4.3.1 :
$a = "wwwwwwwwwwwwwwwwwwwwwwwww\nphprules\nwwwwwwwww";
print wordwrap($a, 10, '<br />', 10);
Output :
wwwwwwwwww<br />wwwwwwwwww<br />wwwww
phpr<br />ules
wwwww<br />wwww
Looks buggy to me.