note 90022 added to function.wordwrap
| From: | jaw at condidact dot dk | Date: | Thu, 02 Apr 2009 07:58:10 +0000 |
| Subject: | note 90022 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152738@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 195.184.96.15
Probable Submitter: 92.62.201.206
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- https://master.php.net/note/edit/90022
Del: integrated -- https://master.php.net/note/delete/90022/integrated
Del: useless -- https://master.php.net/note/delete/90022/useless
Del: bad code -- https://master.php.net/note/delete/90022/bad+code
Del: spam -- https://master.php.net/note/delete/90022/spam
Del: non-english -- https://master.php.net/note/delete/90022/non-english
Del: in docs -- https://master.php.net/note/delete/90022/in+docs
Del: other reasons-- https://master.php.net/note/delete/90022
Reject -- https://master.php.net/note/reject/90022
Search -- https://master.php.net/manage/user-notes.php