#44044 [Opn->Csd]: Error in exemple of trim function in the French documentation

From: Date: Fri, 07 Mar 2008 20:19:21 +0000
Subject: #44044 [Opn->Csd]: Error in exemple of trim function in the French documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-583@lists.php.net to get a copy of this message
ID: 44044 Updated by: yannick@php.net Reported By: j at darksage dot fr -Status: Open +Status: Closed Bug Type: Translation problem PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2008-02-04 20:29:58] j at darksage dot fr Description: ------------ Error in exemple of trim function in the French documentation. http://fr.php.net/manual/fr/function.trim.php The "Bonjour le monde !" text is badly trimmed. Reproduce code: --------------- $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bjro"); var_dump($trimmed); string(5) "nur le mnde !" Expected result: ---------------- The correct result will be: $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bjro"); var_dump($trimmed); string(5) "njour le monde !" Or it is possible to put something like : $hello = "Bonjour le monde !"; $trimmed = trim($hello, "Bron !"); var_dump($trimmed); string(5) "jour le monde" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44044&edit=1

« previous php.doc.bugs (#583) next »