note 54093 added to function.wordwrap
| From: | x403atyandexdotru at osu1 dot php dot net | Date: | Thu, 23 Jun 2005 13:35:38 +0000 |
| Subject: | note 54093 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90840@lists.php.net to get a copy of this message | ||
String lenght control:
if (str_word_count($STRING) > 0)
$div = strlen($STRING) / str_word_count($STRING);
else return " ";
if ( $div > 25 ) return wordwrap($STRING, 25, "\n", 1);
return $STRING;
// Maximum word lenght is 25 chars
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54093
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54093&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54093&report=yes
Search -- http://master.php.net/manage/user-notes.php