Doc #64092 [Opn]: wordwrap: details regarding word separation character
Edit report at https://bugs.php.net/bug.php?id=64092&edit=1
ID: 64092
Updated by: pasindu@php.net
Reported by: datibbaw@php.net
Summary: wordwrap: details regarding word separation
character
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: pasindu
Block user comment: N
Private report: N
New Comment:
working on a patch, with a example
Previous Comments:
------------------------------------------------------------------------
[2013-01-29 07:36:31] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64092&edit=1
Thread (3 messages)