|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-04 16:37 UTC] moriyoshi@php.net
[2009-11-20 11:50 UTC] vrana@php.net
[2009-11-20 11:51 UTC] svn@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 16:00:02 2025 UTC |
Description: ------------ When the original sring $str is longer then $width of the desired trim, the width of the truncated string returned by mb_strimwidth() will count "length of $trimmarker" in. Reproduce code: --------------- echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8'); echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8'); Expected result: ---------------- hello... hello Actual result: -------------- he... hello