cvs: phpdoc-da /reference/strings/functions explode.xml get-html-translation-table.xml wordwrap.xml

[email protected] ("Jonathan Holst")
Newsgroups php.doc.da
Message-ID <cvsholst1092519360@cvsserver>
holst		Sat Aug 14 17:36:00 2004 EDT

  Modified files:              
    /phpdoc-da/reference/strings/functions	wordwrap.xml 
                                          	get-html-translation-table.xml 
                                          	explode.xml 
  Log:
  Sync with EN
  
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/wordwrap.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc-da/reference/strings/functions/wordwrap.xml
diff -u phpdoc-da/reference/strings/functions/wordwrap.xml:1.1 phpdoc-da/reference/strings/functions/wordwrap.xml:1.2
--- phpdoc-da/reference/strings/functions/wordwrap.xml:1.1	Wed Jul  7 13:33:15 2004
+++ phpdoc-da/reference/strings/functions/wordwrap.xml	Sat Aug 14 17:36:00 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
 <!-- EN-Revision: 1.11 Maintainer: holst Status: ready -->
   <refentry id="function.wordwrap">
    <refnamediv>
@@ -15,7 +15,7 @@
       <methodparam><type>string</type><parameter>str</parameter></methodparam>
       <methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam>
       <methodparam choice="opt"><type>string</type><parameter>break</parameter></methodparam>
-      <methodparam choice="opt"><type>boolean</type><parameter>cut</parameter></methodparam>
+      <methodparam choice="opt"><type>bool</type><parameter>cut</parameter></methodparam>
      </methodsynopsis>
     <para>
      Returnerer en streng med <parameter>str</parameter> ombrydt ved
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/get-html-translation-table.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc-da/reference/strings/functions/get-html-translation-table.xml
diff -u phpdoc-da/reference/strings/functions/get-html-translation-table.xml:1.1 phpdoc-da/reference/strings/functions/get-html-translation-table.xml:1.2
--- phpdoc-da/reference/strings/functions/get-html-translation-table.xml:1.1	Mon Jul 26 17:43:31 2004
+++ phpdoc-da/reference/strings/functions/get-html-translation-table.xml	Sat Aug 14 17:36:00 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
-<!-- EN-Revision: 1.6 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.2 $ -->
+<!-- EN-Revision: 1.7 Maintainer: holst Status: ready -->
   <refentry id="function.get-html-translation-table">
    <refnamediv>
     <refname>get_html_translation_table</refname>
@@ -14,7 +14,7 @@
     <title>Beskrivelse</title>
      <methodsynopsis>
       <type>array</type><methodname>get_html_translation_table</methodname>
-      <methodparam><type>int</type><parameter>table</parameter></methodparam>
+      <methodparam choice="opt"><type>int</type><parameter>table</parameter></methodparam>
       <methodparam choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam>
      </methodsynopsis>
     <para>
@@ -26,7 +26,8 @@
     <para>
      Der er to nye konstanter (<constant>HTML_ENTITIES</constant> og
      <constant>HTML_SPECIALCHARS</constant>) som tillade dig at specificere
-     den tabel du ønsker. Som i <function>htmlspecialchars</function>- og
+     den tabel du ønsker. Standardværdien for <parameter>table</parameter> er
+     <constant>HTML_SPECIALCHARS</constant>. Som i <function>htmlspecialchars</function>- og
      <function>htmlentities</function>-funktionerne kan du valgfrit
      specificere <parameter>quote_style</parameter>'en du arbejder med.
      Standarden er <constant>ENT_COMPAT</constant>. Se beskrivelsen af disse
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/explode.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc-da/reference/strings/functions/explode.xml
diff -u phpdoc-da/reference/strings/functions/explode.xml:1.6 phpdoc-da/reference/strings/functions/explode.xml:1.7
--- phpdoc-da/reference/strings/functions/explode.xml:1.6	Fri Jul 23 16:35:18 2004
+++ phpdoc-da/reference/strings/functions/explode.xml	Sat Aug 14 17:36:00 2004
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
-<!-- EN-Revision: 1.7 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.7 $ -->
+<!-- EN-Revision: 1.8 Maintainer: holst Status: ready -->
   <refentry id="function.explode">
    <refnamediv>
     <refname>explode</refname>
@@ -31,6 +31,11 @@
      returnere et array indeholdende <parameter>string</parameter>.
     </para>
     <para>
+     Hvis <parameter>limit</parameter> parametren er negativ, vil alle
+     komponenter bortset fra den sidste <parameter>limit</parameter> blive
+     returneret. Denne feature blev tilføjet i PHP 5.1.0.
+    </para>
+    <para>
      Selvom <function>implode</function>, af historiske årsager, kan
      godtage dets parametre i vilkårlig rækkefølge, kan
      <function>explode</function> ikke. Du skal sikre dig at
@@ -64,6 +69,41 @@
 ]]>
       </programlisting>
      </example>
+    </para>
+    <para>
+     <example>
+      <title><parameter>limit</parameter>-parameter eksempler</title>
+       <programlisting role="php">
+<![CDATA[
+<?php
+$str = 'en|to|tre|fire';
+
+// positiv grænse
+print_r(explode('|', $str, 2));
+
+// negativ grænse
+print_r(explode('|', $str, -1));
+?>
+]]>
+      </programlisting>
+      <para>
+       Ovenstående eksempel ville udskrive:
+      </para>
+      <screen>
+<![CDATA[
+Array
+(
+    [0] => en
+    [1] => to|tre|fire
+)
+Array
+(
+    [0] => en
+    [1] => to
+    [2] => tre
+)
+]]>
+      </screen>
     </para>
 
     &note.bin-safe;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.