note 90022 deleted from function.wordwrap by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:26:28 +0000 |
| Subject: | note 90022 deleted from function.wordwrap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155114@lists.php.net to get a copy of this message | ||
Note Submitter: jaw at condidact dot dk
----
Addition to: r dot hartung at roberthartung dot de
Your function needs a
if($word !== ''){
$wrapped .= $word;
}
Before it returns. Otherwise the last word in a non-html-wrapped string will be omitted.