php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64092 wordwrap: details regarding word separation character
Submitted: 2013-01-29 07:36 UTC Modified: 2015-04-22 14:27 UTC
From: datibbaw@php.net Assigned: pasindu (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: datibbaw@php.net
New email:
PHP Version: OS:

 

 [2013-01-29 07:36 UTC] datibbaw@php.net
Description:
------------
It's not obvious from the documentation that the function uses the space character 
to determine where to cut the string if $cut == false and a line extends $width 
characters.

Here's a related question from SO: 
http://stackoverflow.com/questions/14576041/wordwrap-word-separator-in-
php/14577703#14577703


Test script:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-19 15:19 UTC] pasindu@php.net
-Assigned To: +Assigned To: pasindu
 [2015-04-19 15:19 UTC] pasindu@php.net
working on a patch, with a example
 [2015-04-22 14:25 UTC] pasindu@php.net
Automatic comment from SVN on behalf of pasindu
Revision: http://svn.php.net/viewvc/?view=revision&revision=336614
Log: Fix bug #64092, Added description and example for parameter "cut" is false and word is long than width.
 [2015-04-22 14:27 UTC] pasindu@php.net
-Status: Assigned +Status: Closed
 [2015-04-22 14:27 UTC] pasindu@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of pasindu
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=2ee8e560cb704376146948fa44a56af664280c1a
Log: Fix bug #64092, Added description and example for parameter "cut" is false and word is long than width.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 22 10:01:30 2025 UTC