|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-14 08:28 UTC] laruence@php.net
-Status: Open
+Status: Bogus
[2011-11-14 08:28 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ strip string result for string contain numeric value not true; this below code show it. Test script: --------------- echo "<br/>test ltrim: 05039 <br/>"; echo ltrim("05039", "05"); echo "<br/>test rtrim: 345030 <br/>"; echo rtrim("345030", "30"); Expected result: ---------------- test ltrim: 05039 039 test rtrim: 345030 3450 Actual result: -------------- test ltrim: 05039 39 test rtrim: 345030 345