Bug #72079 [Opn->Nab]: Trim error on www.

From: Date: Fri, 22 Apr 2016 17:20:16 +0000
Subject: Bug #72079 [Opn->Nab]: Trim error on www.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200692@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72079&edit=1 ID: 72079 Updated by: requinix@php.net Reported by: filipeandre07 at gmail dot com Summary: Trim error on www. -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: Linux PHP Version: 5.5.34 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 trim removes individual characters, not strings. trimming "www." is the same as trimming "w." and will remove any 'w's or '.'s at the beginning or end. Previous Comments: ------------------------------------------------------------------------ [2016-04-22 17:10:42] filipeandre07 at gmail dot com Description: ------------ Trim function has error on www.w pattern. Test script: --------------- $a = trim('www.worten.pt','www.'); echo $a; result: orten.pt Expected result: ---------------- worten.pt Actual result: -------------- orten.pt ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72079&edit=1

« previous php.bugs (#200692) next »