Re: Suggestion: Adding fmt like linebreak algorithm
| From: | Yasuo Ohgaki | Date: | Tue, 25 Dec 2001 23:02:52 +0000 |
| Subject: | Re: Suggestion: Adding fmt like linebreak algorithm | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74980@lists.php.net to get a copy of this message | ||
Dominik Roettsches wrote:
Hi there, I've been searching for a PHP implementation of the GNU textformatting tool fmt (http://www.gnu.org/software/textutils/textutils.html) which provides an almost optimal linebreak for your text. I'm not skilled in enough in C programming to implement such a feature for PHP but I'd really appreciate having this algorithm available in a simple PHP function. My question is, if there's anyone who is interested in implementing this for PHP, so that we can see it in one of the next releases? I think, the function would be very useful to do some pretty reformatting of text when for example sending mail or in general doing text formatted output. Thanks for your replies in advance, DominikThis is nice to have. For now, it is possible to use `` or exec(), if system support the command. It does not work under safe mode, we need native support though. How about submit bug report (Feature Request)? -- Yasuo Ohgaki