mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Lets use <screen> here ;)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270665 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
47dd17e302
commit
a770138eb3
1 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.get-html-translation-table">
|
||||
<refnamediv>
|
||||
<refname>get_html_translation_table</refname>
|
||||
|
@ -79,13 +79,18 @@
|
|||
$trans = get_html_translation_table(HTML_ENTITIES);
|
||||
$str = "Hallo & <Frau> & Krämer";
|
||||
$encoded = strtr($str, $trans);
|
||||
|
||||
echo $encoded;
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Hallo &amp; &lt;Frau&gt; &amp; Kr&auml;mer
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
The <literal>$encoded</literal> variable will now contain:
|
||||
<literal>"Hallo &amp; &lt;Frau&gt; &amp;
|
||||
Kr&auml;mer".</literal>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue