Edit report at https://bugs.php.net/bug.php?id=60291&edit=1
ID: 60291 Updated by: [email protected] Reported by: ekoisa at gmail dot com Summary: Ltrim and Rtrim string contain number bug -Status: Open +Status: Bogus Type: Bug Package: Strings related Operating System: Linux PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php the sencode of the ?trim is a list. not a pattern. Previous Comments: ------------------------------------------------------------------------ [2011-11-14 07:57:51] ekoisa at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60291&edit=1
