note 29860 added to function.wordwrap
| From: | looking at rack1 dot php dot net | Date: | Wed, 26 Feb 2003 23:23:16 +0000 |
| Subject: | note 29860 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44583@lists.php.net to get a copy of this message | ||
<?
//string wordwrap ( string str [, int width [, string break [, int cut]]])
$txt = "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk";
$secTxt = wordwrap( $txt, 20);
echo "$secTxt";
// output : kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
?>
<?
//string wordwrap ( string str [, int width [, string break [, int cut]]])
$txt = "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk";
$secTxt = wordwrap( $txt, 20, "\n", 1);
echo "$secTxt";
//output kkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkk kkkkkk
?>
--
http://www.php.net/manual/en/function.wordwrap.php
http://master.php.net/manage/user-notes.php?action=edit+29860
http://master.php.net/manage/user-notes.php?action=delete+29860
http://master.php.net/manage/user-notes.php?action=reject+29860