cvs: phpdoc /en/reference/strings/functions get-html-translation-table.xml

From: Date: Sat, 01 Mar 2003 09:20:00 +0000
Subject: cvs: phpdoc /en/reference/strings/functions get-html-translation-table.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352035@lists.php.net to get a copy of this message
victor Sat Mar 1 04:20:00 2003 EDT Modified files: /phpdoc/en/reference/strings/functions get-html-translation-table.xml Log: Corrected return type and cleaned up function description Index: phpdoc/en/reference/strings/functions/get-html-translation-table.xml diff -u phpdoc/en/reference/strings/functions/get-html-translation-table.xml:1.3 phpdoc/en/reference/strings/functions/get-html-translation-table.xml:1.4 --- phpdoc/en/reference/strings/functions/get-html-translation-table.xml:1.3 Sat Jul 27 00:07:06 2002 +++ phpdoc/en/reference/strings/functions/get-html-translation-table.xml Sat Mar 1 04:19:59 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.get-html-translation-table"> <refnamediv> @@ -13,7 +13,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>get_html_translation_table</methodname> + <type>array</type><methodname>get_html_translation_table</methodname> <methodparam><type>int</type><parameter>table</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam> </methodsynopsis> @@ -21,15 +21,20 @@ <function>get_html_translation_table</function> will return the translation table that is used internally for <function>htmlspecialchars</function> and - <function>htmlentities</function>. There are two new defines - (<parameter>HTML_ENTITIES</parameter>, - <parameter>HTML_SPECIALCHARS</parameter>) that allow you to - specify the table you want. And as in the + <function>htmlentities</function>. + </para> + <para> + There are two new constants + (<constant>HTML_ENTITIES</constant>, + <constant>HTML_SPECIALCHARS</constant>) that allow you to + specify the table you want. And as in the <function>htmlspecialchars</function> and <function>htmlentities</function> functions you can optionally - specify the quote_style you are working with. The default is - ENT_COMPAT mode. See the description of these modes in + specify the <parameter>quote_style</parameter> you are working with. The default is + <constant>ENT_COMPAT</constant> mode. See the description of these modes in <function>htmlspecialchars</function>. + </para> + <para> <example> <title>Translation Table Example</title> <programlisting role="php"> @@ -45,8 +50,8 @@ Kr&amp;auml;mer".</literal> </para> <para> - The cool thing is using <function>array_flip</function> to change - the direction of the translation. + Another interesting use of this function is to, with help of <function>array_flip</function>, + change the direction of the translation. <informalexample> <programlisting role="php"> <![CDATA[

« previous php.doc (#969352035) next »