php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6429 wordwrap() function should have cutting option and handle tabs
Submitted: 2000-08-30 02:38 UTC Modified: 2000-09-12 04:32 UTC
From: gerbil at ucdavis dot edu Assigned: derick (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.2 OS: Win98
Private report: No CVE-ID: None
 [2000-08-30 02:38 UTC] gerbil at ucdavis dot edu
The new wordwrap function should have a cutting option:
When the the line is longer than the wrap length (such as a URL), there should be an option for either to cut it at that length, or leave it uncut (which is what PHP 4.0.2 currently does).

Also, PHP 4.0.2 treats tabs as a single character, when it normally occupies the space of 8 characters. It should be able to handle tabs.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-12 00:04 UTC] derick@php.net
I think your first is very usefull. Tonight I am going to work on that.

Your second request is somewhat nastier. You say:
"Also, PHP 4.0.2 treats tabs as a single character, when it normally occupies the space of
8 characters. It should be able to handle tabs."

But on most systems the tab size is NOT 8 chracters, but 8 or so. Therefore I think such 
functionality is not wanted.
 [2000-09-12 04:32 UTC] derick@php.net
The first request is added in CVS.

For the second request we need discussing. If you still want that functionality, please create a new feature request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC