sander Sat May 25 06:24:01 2002 EDT
Modified files:
/phpdoc-nl/reference/strings/functions addcslashes.xml bin2hex.xml
chop.xml chr.xml
chunk-split.xml
convert-cyr-string.xml
count-chars.xml crypt.xml
echo.xml explode.xml
get-html-translation-table.xml
get-meta-tags.xml hebrev.xml
hebrevc.xml htmlentities.xml
Log:
Sync'ed with EN and added revision tags.
Index: phpdoc-nl/reference/strings/functions/addcslashes.xml
diff -u phpdoc-nl/reference/strings/functions/addcslashes.xml:1.1
phpdoc-nl/reference/strings/functions/addcslashes.xml:1.2
--- phpdoc-nl/reference/strings/functions/addcslashes.xml:1.1 Sun Apr 14 21:37:32
2002
+++ phpdoc-nl/reference/strings/functions/addcslashes.xml Sat May 25 06:24:01
+2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'addcslashes' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.addcslashes">
<refnamediv>
<refname>AddCSlashes</refname>
@@ -19,25 +18,60 @@
Het escaped <literal>\n</literal>, <literal>\r</literal> etc. in
C-achtige stijl, characters met met ASCII code lager dan 32 en
hoger dan 126 worden geconverteerd naar octaal formaat.
- Wees voorzichtig met het escapen van alfanumerieke characters.
+ </para>
+ <para>
+ Wees voorzichtig als je de characters 0, a, b, f, n, r, t of v wilt
+ escapen. Ze zullen worden vervangen door resp. \0, \0a, \b, \f, \n, \r, \t en
+ \v.
+ In PHP worden alleen \0 (&null;), \r (carriage return), \n (newline) en \t (tab)
+ herkend als bijzondere tekens, maar in C worden al deze tekens speciaal
+ geïnterpreteerd.
+ </para>
+ <para>
Je kan in <parameter>charlist</parameter> een bereik specifieren zoals
"\0..\37", hetgeen alle characters zou escapen met een ASCII code tussen
0 en 31.
<example>
<title><function>addcslashes</function> voorbeeld</title>
<programlisting role="php">
-$escaped = addcslashes ($not_escaped, "\0..\37!@\177..\377");
+<![CDATA[
+$escaped = addcslashes ($not_escaped, "\0..\37!@\177..\377");
+]]>
</programlisting>
</example>
- <note>
- <simpara>
- Toegevoegd in PHP4b3-dev.</simpara>
- </note>
+ </para>
+ <para>
+ Als je een reeks characters specificeert in
+ <parameter>charlist</parameter> let erop dat je precies weet welke
+ characters tussen de opgegeven characters komen.
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+echo addcslashes('foo[ ]', 'A..z');
+// output: \f\o\o\[ \]
+// alle hoofdletters en kleine letters zijn ge-esacped
+// ... maar dat geldt ook voor [\]^_` en tabs, line
+// feeds, carriage returns, enz.
+]]>
+ </programlisting>
+ </informalexample>
+ Merk op dat een reeks niet als zodanig wordt geïnterpreteerd als
+ de eerste character in de reeks een lagere ASCII waarde heeft dan het
+ tweede character. In dat geval worden alleen het eerste en tweede
+ character en de punt ge-escaped. Gebruik <function>ord</function> om
+ de ASCII waarde van een character te vinden.
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+echo addcslashes("zoo['.']", 'z..A');
+// output: \zoo['\.']
+]]>
+ </programlisting>
+ </informalexample>
</para>
<para>
Zie ook <function>stripcslashes</function>,
<function>stripslashes</function>,
- <function>htmlspecialchars</function>,
<function>htmlspecialchars</function>, en
<function>quotemeta</function>.
</para>
Index: phpdoc-nl/reference/strings/functions/bin2hex.xml
diff -u phpdoc-nl/reference/strings/functions/bin2hex.xml:1.1
phpdoc-nl/reference/strings/functions/bin2hex.xml:1.2
--- phpdoc-nl/reference/strings/functions/bin2hex.xml:1.1 Sun Apr 14 21:37:33
2002
+++ phpdoc-nl/reference/strings/functions/bin2hex.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'bin2hex' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.bin2hex">
<refnamediv>
<refname>bin2hex</refname>
@@ -18,6 +17,9 @@
Geeft een ASCII string weer met daarin het hexadecimale formaat
van <parameter>str</parameter>. De conversie vindt byte-gewijs plaats
met de hoge-nibble eerst.
+ </para>
+ <para>
+ Zie ook <function>pack</function> en <function>unpack</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc-nl/reference/strings/functions/chop.xml
diff -u phpdoc-nl/reference/strings/functions/chop.xml:1.1
phpdoc-nl/reference/strings/functions/chop.xml:1.2
--- phpdoc-nl/reference/strings/functions/chop.xml:1.1 Sun Apr 14 21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/chop.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'chop' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.chop">
<refnamediv>
<refname>chop</refname>
@@ -13,14 +12,7 @@
<methodparam><type>string</type><parameter>str</parameter></methodparam>
</methodsynopsis>
<para>
- Geeft de argument string zonder achteraankomende whitespace weer,
- inclusief newlines.
- <example>
- <title><function>chop</function> voorbeeld</title>
- <programlisting role="php">
-$trimmed = chop ($line);
- </programlisting>
- </example>
+ Deze functie is een alias van <function>rtrim</function>.
</para>
<note>
<para>
@@ -29,10 +21,6 @@
character van de string verwijdert.
</para>
</note>
- <para>
- Zie ook <function>trim</function>, <function>ltrim</function>,
- <function>rtrim</function>, en <function>chop</function>.
- </para>
</refsect1>
</refentry>
Index: phpdoc-nl/reference/strings/functions/chr.xml
diff -u phpdoc-nl/reference/strings/functions/chr.xml:1.1
phpdoc-nl/reference/strings/functions/chr.xml:1.2
--- phpdoc-nl/reference/strings/functions/chr.xml:1.1 Sun Apr 14 21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/chr.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'chr' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.chr">
<refnamediv>
<refname>chr</refname>
@@ -18,13 +17,21 @@
<example>
<title><function>chr</function> example</title>
<programlisting role="php">
+<![CDATA[
$str .= chr (27); /* voeg een escape character toe aan het eind van $str */
/* Meestal is dit wat handiger */
-$str = sprintf ("De string eindigt in escape: %c", 27);
+$str = sprintf ("De string eindigt in escape: %c", 27);
+]]>
</programlisting>
</example>
+ </para>
+ <para>
+ Je kunt een ASCII tabel vinden op <ulink
+ url="&url.asciitable;">&url.asciitable;</ulink>.
+ </para>
+ <para>
Deze functie vult <function>ord</function> aan. Zie ook
<function>sprintf</function> met een format string van
<literal>%c</literal>.
Index: phpdoc-nl/reference/strings/functions/chunk-split.xml
diff -u phpdoc-nl/reference/strings/functions/chunk-split.xml:1.1
phpdoc-nl/reference/strings/functions/chunk-split.xml:1.2
--- phpdoc-nl/reference/strings/functions/chunk-split.xml:1.1 Sun Apr 14 21:37:33
2002
+++ phpdoc-nl/reference/strings/functions/chunk-split.xml Sat May 25 06:24:01
+2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'chunk-split' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.chunk-split">
<refnamediv>
<refname>chunk_split</refname>
@@ -21,23 +20,23 @@
overeen te doen komen met RFC 2045 vereisten.
Deze functie voegt per <parameter>chunklen</parameter> (default is 76)
aangegeven karakters de middels <parameter>end</parameter> aangegeven
- (default is "\r\n") string in.
+ (default is "\r\n") string in. Het geeft de nieuwe string terug
+ en laat het orgineel onaangetast.
<example>
<title><function>chunk_split</function> example</title>
<programlisting role="php">
+<![CDATA[
# format $data gebruikmakend van RFC 2045 vereisten
$nieuwe_string = chunk_split (base64_encode($data));
+]]>
</programlisting>
</example>
- Deze functie is merkbaar sneller dan
- <function>ereg_replace</function>.
- <note>
- <para>
- Deze functie is toegevoegd in 3.0.6.
- </para>
- </note>
</para>
+ <simpara>
+ Ziek ook <function>explode</function>, <function>split</function> en
+ <function>wordwrap</function>.
+ </simpara>
</refsect1>
</refentry>
Index: phpdoc-nl/reference/strings/functions/convert-cyr-string.xml
diff -u phpdoc-nl/reference/strings/functions/convert-cyr-string.xml:1.1
phpdoc-nl/reference/strings/functions/convert-cyr-string.xml:1.2
--- phpdoc-nl/reference/strings/functions/convert-cyr-string.xml:1.1 Sun Apr 14
21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/convert-cyr-string.xml Sat May 25
+06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'convert-cyr-string' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.convert-cyr-string">
<refnamediv>
<refname>convert_cyr_string</refname>
Index: phpdoc-nl/reference/strings/functions/count-chars.xml
diff -u phpdoc-nl/reference/strings/functions/count-chars.xml:1.2
phpdoc-nl/reference/strings/functions/count-chars.xml:1.3
--- phpdoc-nl/reference/strings/functions/count-chars.xml:1.2 Mon May 20 12:39:41
2002
+++ phpdoc-nl/reference/strings/functions/count-chars.xml Sat May 25 06:24:01
+2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'count-chars' in en/ tree in rev 1.4 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.count-chars">
<refnamediv>
<refname>count_chars</refname>
@@ -21,8 +20,8 @@
Telt hoeveel keer elke byte-waarde (0..255) voorkomt in een
<parameter>string</parameter> en geeft het weer op verschillende manieren.
De optionele parameter <parameter>Mode</parameter> is default 0.
- Afhankelijk van <parameter>mode</parameter> <function>count_chars</function>
- geeft een van de volgende terug:
+ Afhankelijk van <parameter>mode</parameter> geeft
+<function>count_chars</function>
+ een van de volgende terug:
<itemizedlist>
<listitem>
<simpara>
@@ -54,11 +53,6 @@
</listitem>
</itemizedlist>
</para>
- <note>
- <para>
- Deze functie is toegevoegd in PHP 4.0.0.
- </para>
- </note>
</refsect1>
</refentry>
Index: phpdoc-nl/reference/strings/functions/crypt.xml
diff -u phpdoc-nl/reference/strings/functions/crypt.xml:1.1
phpdoc-nl/reference/strings/functions/crypt.xml:1.2
--- phpdoc-nl/reference/strings/functions/crypt.xml:1.1 Sun Apr 14 21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/crypt.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'crypt' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.crypt">
<refnamediv>
<refname>crypt</refname>
@@ -45,7 +44,10 @@
</simpara>
<simpara>
De standaard DES encryptie <function>crypt</function> gebruikt de
- salt als de eerste 2 karakters van de output.
+ salt als de eerste 2 karakters van de output. Ook gebruikt het slechts
+ de eerste acht karakters van <parameter>str</parameter>, dus langere
+ strings die met dezelfde acht karakters beginnen zullen hetzelfde
+ resultaat opleveren (als hetzelfde salt wordt gebruikt).
</simpara>
<simpara>
Op systemen waar de crypt() functie meerdere encryptie types ondersteunt,
@@ -76,12 +78,34 @@
</simpara>
</listitem>
</itemizedlist>
+ <note>
+ <simpara>
+ Er is geen decrypt functie, omdat <function>crypt</function>
+ gebruikmaakt van een one-way algoritme.
+ </simpara>
+ </note>
+ <example>
+ <title><function>crypt</function> voorbeelden</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$password = crypt("My1sTpassword"); # salt wordt gegenereerd
+
+# Je moet de het gehele resultaat van crypt gebruiken als salt om een
+# wachtwoord te vergelijken, om problemen te voorkomen als je verschillende
+# hashing algoritmen gebruikt. (Zoals hierbove beschreven, gebruikt een
+# standaard DES-gebaseerde wachtwoord hashing een 2-karakter salt, maar
+# MD5-based hashing gebruikt er 12.
+if (crypt($user_input,$password) == $password) {
+ echo "Password is geverifieerd.!";
+}
+?>
+]]>
+ </programlisting>
+ </example>
<simpara>
- Er is geen decrypt functie, omdat <function>crypt</function>
- gebruikmaakt van een one-way algoritme.
- </simpara>
- <simpara>
- Zie ook: <function>md5</function>.
+ Zie ook: <function>md5</function> en <link linkend="ref.mcrypt">de Mcrypt
+ extensie</link>.
</simpara>
</refsect1>
</refentry>
Index: phpdoc-nl/reference/strings/functions/echo.xml
diff -u phpdoc-nl/reference/strings/functions/echo.xml:1.1
phpdoc-nl/reference/strings/functions/echo.xml:1.2
--- phpdoc-nl/reference/strings/functions/echo.xml:1.1 Sun Apr 14 21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/echo.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'echo' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.3 Maintainer: sander Status: ready -->
<refentry id="function.echo">
<refnamediv>
<refname>echo</refname>
@@ -18,24 +17,72 @@
</simpara>
<para>
<function>echo</function> is eigenlijk geen functie (het is een
- language construct), dus je hoeft geen parantheses te gebruiken.
+ language construct), dus je hoeft geen haakjes te gebruiken.
+ Sterker nog, als je meer dan één parameter gebruikt mag
+ je geen haakjes gebruiken. Het is niet mogelijk <function>echo</function>
+ te gebruiken als een <link linkend="functions.variable-functions">variabele
+functie</link>,
+ maar dat kan wel met <function>print</function>.
<example>
<title><function>echo</function> voorbeeld</title>
<programlisting role="php">
-echo "Hallo Wereld";
+<![CDATA[
+echo "Hallo Wereld";
-echo "Dit spant
-over meerdere regels. De newlines zullen ook
-in de output worden opgenomen";
+echo "Dit overspant
+meerdere regels. De newlines zullen ook
+in de output worden opgenomen";
-echo "Dit spant\nover meerdere regels. The newlines zullen ook in de\noutput
worden opgenomen.";
+echo "Dit overspant\nmeerdere regels. The newlines zullen ook in de\noutput worden
+opgenomen.";
+
+echo "het escapen van karakters doe je \"zo\".";
+
+// Je kan ook variabelen in een echo statement gebruiken
+$foo = "foobar";
+$bar = "barbaz";
+
+echo "foo is $foo"; // foo is foobar
+
+// Met enkele aanhalingstekens zal de variabelnaam worden geprint, en niet de waarde
+echo 'foo is $foo'; // foo is $foo
+
+// Als je niet andere tekens wil printen, kan je gewoon de variabelen echo-en
+echo $foo; // foobar
+echo $foo,$bar; // foobarbarbaz
+
+echo <<END
+Hier wordt de "here document" syntax gebruikt om meerdere
+regels met de $variabele vervangen door hun waarden. Merk op
+dat the here document beëndiger alleen op één
+regel moet staan met alleen een puntkomma zonder extra whitespace.
+END;
+
+// Omdat echo geen functie is, is de volgende code niet juist.
+($some_var) ? echo('true'): echo('false');
+
+// Echter, het volgende werkt wel
+($some_var) ? print('true'): print('false'); // print is een functie
+echo $some_var ? 'true': 'false'; // verplaats het statement naar voren
+
+]]>
</programlisting>
</example>
</para>
+ <para>
+ Er is ook een kortere syntax voor <function>echo</function>, een
+ is-gelijk teken dat meteen volgt na een open tag.
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
+Ik heb <?=$foo?> foo.
+]]>
+ </programlisting>
+ </informalexample>
+ </para>
<note>
<para>
- Nota bene, als je meer dan 1 parameter in de echo wilt gebruiken,
- zullen de parameters niet moeten worden ingesloten met parentheses.
+ Deze korte syntax werkt alleen als de <link
+ linkend="ini.short-open-tag">short_open_tags</link> configuratie
+ setting aan staat.
</para>
</note>
<simpara>
Index: phpdoc-nl/reference/strings/functions/explode.xml
diff -u phpdoc-nl/reference/strings/functions/explode.xml:1.1
phpdoc-nl/reference/strings/functions/explode.xml:1.2
--- phpdoc-nl/reference/strings/functions/explode.xml:1.1 Sun Apr 14 21:37:33
2002
+++ phpdoc-nl/reference/strings/functions/explode.xml Sat May 25 06:24:01 2002
@@ -23,11 +23,20 @@
laatste element de rest van <parameter>string</parameter> bevat.
</para>
<para>
+ Als <parameter>separator</parameter> een lege string is (""), dan zal
+ <function>explode</function> &false; teruggeven. Als
+ <parameter>separator</parameter> een tekenreeks bevat die niet in string
+ voorkomt, dan zal <function>explode</function> een array met daarin
+ <parameter>string</parameter> teruggeven.
+ </para>
+ <para>
<example>
<title><function>explode</function> voorbeeld</title>
<programlisting role="php">
-$pizza = "stuk1 stuk2 stuk3 stuk4 stuk5 stuk6";
-$stukken = explode (" ", $pizza);
+<![CDATA[
+$pizza = "stuk1 stuk2 stuk3 stuk4 stuk5 stuk6";
+$stukken = explode (" ", $pizza);
+]]>
</programlisting>
</example>
</para>
@@ -41,7 +50,10 @@
</para>
</note>
<para>
- Zie ook <function>split</function> en
+ Zie ook
+ <function>preg_split</function>,
+ <function>spliti</function>
+ <function>split</function> en
<function>implode</function>.
</para>
</refsect1>
Index: phpdoc-nl/reference/strings/functions/get-html-translation-table.xml
diff -u phpdoc-nl/reference/strings/functions/get-html-translation-table.xml:1.1
phpdoc-nl/reference/strings/functions/get-html-translation-table.xml:1.2
--- phpdoc-nl/reference/strings/functions/get-html-translation-table.xml:1.1 Sun
Apr 14 21:37:33 2002
+++ phpdoc-nl/reference/strings/functions/get-html-translation-table.xml Sat
+May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'get-html-translation-table' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.get-html-translation-table">
<refnamediv>
<refname>get_html_translation_table</refname>
@@ -30,32 +29,30 @@
<example>
<title>Vertalingstabel Voorbeeld</title>
<programlisting role="php">
+<![CDATA[
$trans = get_html_translation_table (HTML_ENTITIES);
-$str = "Hallo & <Frau> & Krämer";
+$str = "Hallo & <Frau> & Krämer";
$encoded = strtr ($str, $trans);
+]]>
</programlisting>
</example>
- De <literal>$encoded</literal> variabele zal nu bevatten: "Hallo
- &<sgmltag>amp</sgmltag>;
- &<sgmltag>lt</sgmltag>;Frau&<sgmltag>gt</sgmltag>;
- &<sgmltag>amp</sgmltag>; Kr&<sgmltag>auml</sgmltag>;mer".
+ De <literal>$encoded</literal> variabele zal nu bevatten:
+ <literal>"Hallo &amp &lt;Frau&gt; &amp;
+ Kr&auml;mer</literal>.
</para>
<para>
Leuk is het gebruikmaken van <function>array_flip</function> om
de richting van de vertaling te veranderen.
<informalexample>
<programlisting role="php">
+<![CDATA[
$trans = array_flip ($trans);
$original = strtr ($str, $trans);
+]]>
</programlisting>
</informalexample>
De inhoud van <literal>$original</literal> zou zijn: "Hallo &
<Frau> & Krämer".
- <note>
- <para>
- Deze functie was toegevoegd in PHP 4.0.
- </para>
- </note>
</para>
<para>
Zie ook: <function>htmlspecialchars</function>,
Index: phpdoc-nl/reference/strings/functions/get-meta-tags.xml
diff -u phpdoc-nl/reference/strings/functions/get-meta-tags.xml:1.1
phpdoc-nl/reference/strings/functions/get-meta-tags.xml:1.2
--- phpdoc-nl/reference/strings/functions/get-meta-tags.xml:1.1 Sun Apr 14 21:37:34
2002
+++ phpdoc-nl/reference/strings/functions/get-meta-tags.xml Sat May 25 06:24:01
+2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'get-meta-tags' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.get-meta-tags">
<refnamediv>
<refname>get_meta_tags</refname>
@@ -22,9 +21,11 @@
<example>
<title>Meta Tags Voorbeeld</title>
<programlisting role="html">
-<meta name="author" content="name">
-<meta name="tags" content="php3 documentation">
-</head> <!-- parsen stopt hier -->
+<![CDATA[
+<meta name="author" content="name">
+<meta name=""tags" content="php3 documentation">
+</head> <!-- parsen stopt hier -->
+]]>
</programlisting>
</example>
(let op de line endings - PHP gebruikt native functies
Index: phpdoc-nl/reference/strings/functions/hebrev.xml
diff -u phpdoc-nl/reference/strings/functions/hebrev.xml:1.1
phpdoc-nl/reference/strings/functions/hebrev.xml:1.2
--- phpdoc-nl/reference/strings/functions/hebrev.xml:1.1 Sun Apr 14 21:37:34
2002
+++ phpdoc-nl/reference/strings/functions/hebrev.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'hebrev' in en/ tree in rev 1.34 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.hebrev">
<refnamediv>
<refname>hebrev</refname>
Index: phpdoc-nl/reference/strings/functions/hebrevc.xml
diff -u phpdoc-nl/reference/strings/functions/hebrevc.xml:1.1
phpdoc-nl/reference/strings/functions/hebrevc.xml:1.2
--- phpdoc-nl/reference/strings/functions/hebrevc.xml:1.1 Sun Apr 14 21:37:34
2002
+++ phpdoc-nl/reference/strings/functions/hebrevc.xml Sat May 25 06:24:01 2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'hebrevc' in en/ tree in rev 1.34 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.hebrevc">
<refnamediv>
<refname>hebrevc</refname>
Index: phpdoc-nl/reference/strings/functions/htmlentities.xml
diff -u phpdoc-nl/reference/strings/functions/htmlentities.xml:1.1
phpdoc-nl/reference/strings/functions/htmlentities.xml:1.2
--- phpdoc-nl/reference/strings/functions/htmlentities.xml:1.1 Sun Apr 14 21:37:34
2002
+++ phpdoc-nl/reference/strings/functions/htmlentities.xml Sat May 25 06:24:01
+2002
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/strings.xml, last change in rev 1.1 -->
-<!-- last change to 'htmlentities' in en/ tree in rev 1.2 -->
+<!-- EN-Revision: 1.2 Maintainer: sander Status: ready -->
<refentry id="function.htmlentities">
<refnamediv>
<refname>htmlentities</refname>
@@ -14,6 +13,7 @@
<type>string</type><methodname>htmlentities</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam>
+ <methodparam
+choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
</methodsynopsis>
<para>
Deze functie is identiek aan <function>htmlspecialchars</function>
@@ -29,9 +29,29 @@
dubbele quotes ongeconverteerd.
</para>
<para>
- Hedendaags wordt de ISO-8859-1 karakter set gebruikt. Let er op dat
+ Momenteel wordt de ISO-8859-1 karakter set standaard gebruikt. Let er op dat
het optionele tweede argument toegevoegd was in PHP 3.0.17 en PHP 4.0.3.
</para>
+ <para>
+ Net als <function>htmlspecialchars</function> is er een optioneel derde
+ parameter dat de karakter set definieert. Deze parameter was toegevoegd
+ in PHP 4.1.0.
+ </para>
+ <example>
+ <title>Omgedraaide van <function>htmlentities</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+function unhtmlentities ($string)
+{
+ $trans_tbl = get_html_translation_table (HTML_ENTITIES);
+ $trans_tbl = array_flip ($trans_tbl);
+ return strtr ($string, $trans_tbl);
+}
+?>
+]]>
+ </programlisting>
+ </example>
<para>
Zie ook <function>htmlspecialchars</function> en
<function>nl2br</function>.