Modified: phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/bg/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -77,7 +77,7 @@ & Kramer"; +$str = "Hallo & & Krämer"; $encoded = strtr($str, $trans); echo $encoded; @@ -86,8 +86,8 @@ &example.outputs; - Modified: phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/cs/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -33,35 +33,24 @@ Ukázka na překladovou tabulku & Krämer"; +$encoded = strtr($str, $trans); + +echo $encoded; +?> ]]> + &example.outputs; + + + - Proměnná $encoded teď obsahuje: "Hallo - &amp; - &lt;Frau&gt; - &amp; Kr&auml;mer". - Skvělé je, že pomocí array_flip můžete změnit směr - překladu. - - -$trans = array_flip ($trans); -$original = strtr ($str, $trans); - - - Obsahem $original je: "Hallo & - <Frau> & Krämer". - - - Tato funkce byla přidána v PHP 4.0. - - - - Viz také: htmlspecialchars, htmlentities, strtr a Modified: phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/de/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -91,7 +91,7 @@ &example.outputs; Modified: phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/el/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -36,30 +36,20 @@ & Krδmer"; +$str = "Hallo & & Krämer"; $encoded = strtr($str, $trans); + +echo $encoded; ?> ]]> - - Η μεταβλητή $encoded θα περιέχει τώρα: - "Hallo &amp; &lt;Frau&gt; &amp; - Kr&auml;mer". - - - Μία άλλη ενδιαφέρουσα χρήση της συνάρτησης είναι, με τη βοήθεια της array_flip, η αλλαγή της κατεύθυνσης μετάφρασης. - - + &example.outputs; + +Hallo & <Frau> & Krämer ]]> - - - Το περιέχομενο της μεταβλητής $original θα είναι: "Hallo & - <Frau> & Krämer". + + Ανατρέξτε επίσης στις: htmlspecialchars, Modified: phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/it/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -43,29 +43,18 @@ $trans = get_html_translation_table(HTML_ENTITIES); $str = "Hallo & & Krämer"; $encoded = strtr($str, $trans); + +echo $encoded; ?> ]]> - - La variabile $encoded ora contiene: - "Hallo &amp; &lt;Frau&gt; &amp; - Kr&auml;mer". - - - Un'altro utilizzo interessante di questa funzione è dato, in combinazione con array_flip, - dalla possibilità di cambiare direzione alla decodifica. - - + &example.outputs; + +Hallo & <Frau> & Krämer ]]> - - - Il contenuto $original sarà: "Hallo & - <Frau> & Krämer". + + Vedere anche: htmlspecialchars, Modified: phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/kr/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -89,7 +89,7 @@ &example.outputs; Modified: phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/nl/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -30,35 +30,23 @@ Vertalingstabel Voorbeeld & Krämer"; -$encoded = strtr ($str, $trans); +$encoded = strtr($str, $trans); + +echo $encoded; +?> ]]> - - De $encoded variabele zal nu bevatten: - "Hallo &amp &lt;Frau&gt; &amp; - Kr&auml;mer. - - - Leuk is het gebruikmaken van array_flip om - de richting van de vertaling te veranderen. - - + &example.outputs; + - - - De inhoud van $original zou zijn: "Hallo & - <Frau> & Krämer". + + - - Zie ook: htmlspecialchars, - htmlentities, strtr, - en array_flip. - Modified: phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/pt_BR/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -72,19 +72,24 @@ Exemplo de tabela de tradução - + & Krämer"; $encoded = strtr($str, $trans); + +echo $encoded; ?> ]]> + &example.outputs; + + + - A variável $encoded conterá agora: - "Hallo & <Frau> & - Krämer". Modified: phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml =================================================================== --- phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:40:55 UTC (rev 317773) +++ phpdoc/tr/trunk/reference/strings/functions/get-html-translation-table.xml 2011-10-05 10:55:27 UTC (rev 317774) @@ -90,7 +90,7 @@ &example.outputs;