note 115074 added to function.mb-strimwidth
| From: | RichMehta | Date: | Thu, 22 May 2014 14:58:44 +0000 |
| Subject: | note 115074 added to function.mb-strimwidth | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199593@lists.php.net to get a copy of this message | ||
I had a problem (as in another comment) with a space being between the trailing dots and the subject
being truncated. Here's how I fixed it:
<?php str_replace( " .", ".", mb_strimwidth( $subject, 0, 30, "..."
) ); ?>
----
Server IP: 72.52.91.14
Probable Submitter: 84.92.82.237
----
Manual Page -- http://php.net/manual/en/function.mb-strimwidth.php
Edit -- https://master.php.net/note/edit/115074
Del: integrated -- https://master.php.net/note/delete/115074/integrated
Del: useless -- https://master.php.net/note/delete/115074/useless
Del: bad code -- https://master.php.net/note/delete/115074/bad+code
Del: spam -- https://master.php.net/note/delete/115074/spam
Del: non-english -- https://master.php.net/note/delete/115074/non-english
Del: in docs -- https://master.php.net/note/delete/115074/in+docs
Del: other reasons-- https://master.php.net/note/delete/115074
Reject -- https://master.php.net/note/reject/115074
Search -- https://master.php.net/manage/user-notes.php