note 87728 added to function.wordwrap
| From: | admin at studio-gepard dot pl | Date: | Thu, 18 Dec 2008 14:24:12 +0000 |
| Subject: | note 87728 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148309@lists.php.net to get a copy of this message | ||
remark to note from 09-Dec-2008 02:09:
instead of:
<?php $String = wordwrap($str, $end, '[cut]', false); ?>
put
<?php $String = wordwrap($str, $end-$start, '[cut]', false); ?>
Otherwise in some cases results might not be as expected.
Also: if your text contains "[cut]" - simply swap that in function to something like
"#$%^@" - should fix the problems with cutting text in wrong places.
----
Server IP: 82.177.164.100
Probable Submitter: 78.8.15.211
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- https://master.php.net/note/edit/87728
Del: integrated -- https://master.php.net/note/delete/87728/integrated
Del: useless -- https://master.php.net/note/delete/87728/useless
Del: bad code -- https://master.php.net/note/delete/87728/bad+code
Del: spam -- https://master.php.net/note/delete/87728/spam
Del: non-english -- https://master.php.net/note/delete/87728/non-english
Del: in docs -- https://master.php.net/note/delete/87728/in+docs
Del: other reasons-- https://master.php.net/note/delete/87728
Reject -- https://master.php.net/note/reject/87728
Search -- https://master.php.net/manage/user-notes.php