Bug #60063 [Com]: bug in ltrim
| From: | earlchaos at gmail dot com | Date: | Fri, 14 Oct 2011 14:56:14 +0000 |
| Subject: | Bug #60063 [Com]: bug in ltrim | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164324@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60063&edit=1
ID: 60063
Comment by: earlchaos at gmail dot com
Reported by: paul at around25 dot com
Summary: bug in ltrim
Status: Open
Type: Bug
Package: *General Issues
Operating System: Windows7
PHP Version: 5.3SVN-2011-10-14 (SVN)
Block user comment: N
Private report: N
New Comment:
ltrims second parameter is a list of chars.
http://de3.php.net/manual/en/function.ltrim.php
So as far as i can see, everyhing is fine here.
cheers, Frank
Previous Comments:
------------------------------------------------------------------------
[2011-10-14 13:13:51] paul at around25 dot com
Description:
------------
---
From manual page: http://www.php.net/function.ltrim#refsect1-function.ltrim-description
---
Test script:
---------------
echo ltrim('vlccballard', 'vlc');
Expected result:
----------------
I'm expecting: cballard
Actual result:
--------------
I get as result: ballard
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60063&edit=1