Req #35276 [Opn->Csd]: exploding_wordwrap
Edit report at https://bugs.php.net/bug.php?id=35276&edit=1
ID: 35276
Updated by: cmb@php.net
Reported by: teunkloosterman at gmail dot com
Summary: exploding_wordwrap
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Strings related
Operating System: Irrelevant
PHP Version: 5.1.0RC5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I don't think this would be a generally useful addition, since it
can be done with preg_slit(). If you, or anybody else, still want
to have this function in PHP, please forward your request to the
internals mailing list.
Previous Comments:
------------------------------------------------------------------------
[2005-11-18 14:46:35] teunkloosterman at gmail dot com
Description:
------------
Maybe this function is usefull enough to implement into php
Reproduce code:
---------------
$value = explode("#BREAK#", wordwrap($value, $length, "#BREAK#", 1));
Expected result:
----------------
$value[0] = "Line #1";
$value[1] = "Line #2";
$value[2] = "Line #3";
$value[3] = "Line #4";
$value[4] = "Line #5";
$value[5] = "Line #6";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=35276&edit=1
Thread (2 messages)