cvs: phpdoc-fr /reference/strings/functions trim.xml

From: Date: Fri, 07 Mar 2008 20:19:08 +0000
Subject: cvs: phpdoc-fr /reference/strings/functions trim.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5575@lists.php.net to get a copy of this message
yannick Fri Mar 7 20:19:08 2008 UTC Modified files: /phpdoc-fr/reference/strings/functions trim.xml Log: Fix bug #44044 http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/strings/functions/trim.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/strings/functions/trim.xml diff -u phpdoc-fr/reference/strings/functions/trim.xml:1.20 phpdoc-fr/reference/strings/functions/trim.xml:1.21 --- phpdoc-fr/reference/strings/functions/trim.xml:1.20 Thu Jun 21 17:04:57 2007 +++ phpdoc-fr/reference/strings/functions/trim.xml Fri Mar 7 20:19:08 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> +<!-- $Revision: 1.21 $ --> <!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> @@ -132,9 +132,9 @@ <![CDATA[ <?php -$text = "\t\tVoici quelques mots :) ... "; -$binary = "\x09Exemple de chaîne\x0A"; -$hello = "Bonjour le monde !"; +$text = "\t\tThese are a few words :) ... "; +$binary = "\x09Example string\x0A"; +$hello = "Hello World"; var_dump($text, $binary, $hello); print "\n"; @@ -145,7 +145,7 @@ $trimmed = trim($text, " \t."); var_dump($trimmed); -$trimmed = trim($hello, "Bjro"); +$trimmed = trim($hello, "Hdle"); var_dump($trimmed); // Supprime les caractères de contrôle ASCII au début et à la fin de $binary @@ -159,15 +159,15 @@ &example.outputs; <screen> <![CDATA[ -string(32) " Voici quelques mots :) ... " -string(16) " Exemple de chaîne +string(32) " These are a few words :) ... " +string(16) " Example string " -string(11) "Bonjour le monde !" +string(11) "Hello World" -string(28) "Voici quelques mots :) ..." -string(24) "Voici quelques mots :)" -string(5) "nur le mnde !" -string(14) "Exemple de chaîne" +string(28) "These are a few words :) ..." +string(24) "These are a few words :)" +string(5) "o Wor" +string(14) "Example string" ]]> </screen> </example> @@ -178,12 +178,12 @@ <programlisting role="php"> <![CDATA[ <?php -function trim_value(&$value) -{ - $value = trim($value); +function trim_value(&$value) +{ + $value = trim($value); } -$fruit = array('pomme','banane ', ' canneberge '); +$fruit = array('apple','banana ', ' cranberry '); var_dump($fruit); array_walk($fruit, 'trim_value'); @@ -197,19 +197,19 @@ <![CDATA[ array(3) { [0]=> - string(5) "pomme" + string(5) "apple" [1]=> - string(7) "banane " + string(7) "banana " [2]=> - string(11) " canneberge " + string(11) " cranberry " } array(3) { [0]=> - string(5) "pomme" + string(5) "apple" [1]=> - string(6) "banane" + string(6) "banana" [2]=> - string(9) "canneberge" + string(9) "cranberry" } ]]>

« previous php.doc.fr (#5575) next »