cvs: phpdoc-de /reference/strings/functions setlocale.xml str-replace.xml

From: Date: Fri, 05 Jan 2007 10:08:36 +0000
Subject: cvs: phpdoc-de /reference/strings/functions setlocale.xml str-replace.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-1703@lists.php.net to get a copy of this message
sammywg Fri Jan 5 10:08:36 2007 UTC Modified files: /phpdoc-de/reference/strings/functions setlocale.xml str-replace.xml Log: update to current english versions http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/strings/functions/setlocale.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-de/reference/strings/functions/setlocale.xml diff -u phpdoc-de/reference/strings/functions/setlocale.xml:1.6 phpdoc-de/reference/strings/functions/setlocale.xml:1.7 --- phpdoc-de/reference/strings/functions/setlocale.xml:1.6 Wed Jun 28 07:13:39 2006 +++ phpdoc-de/reference/strings/functions/setlocale.xml Fri Jan 5 10:08:36 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.26 Maintainer: sammywg Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.27 Maintainer: sammywg Status: ready --> <refentry id="function.setlocale"> <refnamediv> <refname>setlocale</refname> @@ -135,9 +135,10 @@ <acronym>MSDN</acronym>-Webseite. Unterstützte Language-Strings können Sie unter <ulink url="&url.setlocale.lang.win32;">&url.setlocale.lang.win32;</ulink>, - Country/Region-Strings unter <ulink url="&url.setlocale.country.win32;"> - &url.setlocale.country.win32;</ulink> nachschlagen. Windowssysteme - unterstützen Drei-Buchstaben-Codes für Länder/Regionen-Angaben entsprechend + Country/Region-Strings unter <ulink + url="&url.setlocale.country.win32;">&url.setlocale.country.win32;</ulink> + nachschlagen. Windowssysteme unterstützen Drei-Buchstaben-Codes für + Länder/Regionen-Angaben entsprechend <literal>ISO 3166-Alpha-3</literal>, die Sie auf der <ulink url="&url.iso-3166-3;">Unicode Website</ulink> finden. </para> http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/strings/functions/str-replace.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-de/reference/strings/functions/str-replace.xml diff -u phpdoc-de/reference/strings/functions/str-replace.xml:1.7 phpdoc-de/reference/strings/functions/str-replace.xml:1.8 --- phpdoc-de/reference/strings/functions/str-replace.xml:1.7 Wed Sep 20 14:03:26 2006 +++ phpdoc-de/reference/strings/functions/str-replace.xml Fri Jan 5 10:08:36 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.19 Maintainer: sammywg Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.20 Maintainer: sammywg Status: ready --> <refentry id="function.str-replace"> <refnamediv> <refname>str_replace</refname> @@ -60,6 +60,10 @@ <parameter>search</parameter> angewandt. Das Gegenteil ist nicht sinnvoll. </para> <para> + Sind <parameter>search</parameter> und/oder <parameter>replace</parameter> + Arrays, werden ihre Elemente vom ersten zum letzten hin verarbeitet. + </para> + <para> <example> <title><function>str_replace</function>-Beispiele</title> <programlisting role="php"> @@ -82,6 +86,14 @@ // Die Verwendung des count-Parameters ist ab PHP 5.0.0 möglich $str = str_replace("ll", "", "good golly miss molly!", $count); echo $count; // 2 + +// Reihenfolge von Ersetzungen +$str = "Zeile 1\nZeile 2\rZeile 3\r\nZeile 4\n"; +$order = array("\r\n", "\n", "\r"); +$replace = '<br />'; +// Verarbeitet \r\n's zuerst, so dass sie nicht doppelt konvertiert werden +$newstr = str_replace($order, $replace, $str); + ?> ]]> </programlisting>

« previous php.doc.de (#1703) next »