note 94695 modified in function.wordwrap by danbrown
| From: | danbrown@php.net | Date: | Wed, 18 Nov 2009 23:31:10 +0000 |
| Subject: | note 94695 modified in function.wordwrap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163063@lists.php.net to get a copy of this message | ||
I wish there were a word_unwrap() function, but this seems to work:
<?php $text = preg_replace('/[\t\r\n]+/', ' ', $text); ?>
--was--
I wish there were a word_unwrap() function, but this seems to work:
$text = preg_replace('/[\t\r\n]+/', ' ', $text);
http://php.net/manual/en/function.wordwrap.php