<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <refentry xml:id="function.recode-string" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>recode_string</refname> <refpurpose>Recode a string according to a recode request</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>recode_string</methodname> <methodparam><type>string</type><parameter>request</parameter></methodparam> <methodparam><type>string</type><parameter>string</parameter></methodparam> </methodsynopsis> <para> Recode the string <parameter>string</parameter> according to the recode request <parameter>request</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>request</parameter></term> <listitem> <para> The desired recode request type </para> </listitem> </varlistentry> <varlistentry> <term><parameter>string</parameter></term> <listitem> <para> The <type>string</type> to be recoded </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the recoded <type>string</type> or &false;, if unable to perform the recode request. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Basic <function>recode_string</function> example</title> <programlisting role="php"> <![CDATA[ <?php echo recode_string("us..flat", "The following character has a diacritical mark: รก"); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="notes"> &reftitle.notes; <para> A simple recode request may be "lat1..iso646-de". </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member> The GNU Recode documentation of your installation for detailed instructions about recode requests. </member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->