cvs: phpdoc-da /reference/strings/functions str-replace.xml strip-tags.xml stripos.xml stristr.xml strpos.xml

[email protected] ("Jonathan Holst") Tue, 14 Jun 2005 22:43:04 -0000
Newsgroups php.doc.da
Message-ID <cvsholst1118788984@cvsserver>
holst		Tue Jun 14 18:43:04 2005 EDT

  Modified files:              
    /phpdoc-da/reference/strings/functions	strpos.xml stristr.xml 
                                          	stripos.xml strip-tags.xml 
                                          	str-replace.xml 
  Log:
  Sync with EN
  
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/strpos.xml?r1=1.6&r2=1.7&ty=u
Index: phpdoc-da/reference/strings/functions/strpos.xml
diff -u phpdoc-da/reference/strings/functions/strpos.xml:1.6 phpdoc-da/reference/strings/functions/strpos.xml:1.7
--- phpdoc-da/reference/strings/functions/strpos.xml:1.6	Sat Oct 30 17:11:06 2004
+++ phpdoc-da/reference/strings/functions/strpos.xml	Tue Jun 14 18:43:04 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <!-- EN-Revision: 1.6 Maintainer: holst Status: ready -->
   <refentry id="function.strpos">
    <refnamediv>
@@ -29,7 +29,7 @@
     </para>
     
     &return.falseproblem;
-
+    &note.bin-safe;
     <para>
      <example>
      <title><function>strpos</function> eksempler</title>
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/stristr.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc-da/reference/strings/functions/stristr.xml
diff -u phpdoc-da/reference/strings/functions/stristr.xml:1.4 phpdoc-da/reference/strings/functions/stristr.xml:1.5
--- phpdoc-da/reference/strings/functions/stristr.xml:1.4	Fri Jul 23 12:45:34 2004
+++ phpdoc-da/reference/strings/functions/stristr.xml	Tue Jun 14 18:43:04 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.8 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.9 Maintainer: holst Status: ready -->
   <refentry id="function.stristr">
    <refnamediv>
     <refname>stristr</refname>
@@ -9,7 +9,7 @@
     </refpurpose>
    </refnamediv>
    <refsect1>
-    <title>Description</title>
+    <title>Beskrivelse</title>
      <methodsynopsis>
       <type>string</type><methodname>stristr</methodname>
       <methodparam><type>string</type><parameter>haystack</parameter></methodparam>
@@ -35,12 +35,41 @@
 <![CDATA[
 <?php
   $email = '[email protected]';
-  $domain = stristr($email, 'e');
-  echo $domain; 
+  echo strstr($email, 'e');; 
 // giver [email protected]
 ?>
 ]]>
       </programlisting>
+     </example>
+    </para>
+    <para>
+     <example>
+      <title>Tester om en streng blev fundet eller ej</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+  $string = 'Hej verden!';
+  if(stristr($string, 'klode') === FALSE) {
+     echo '"klode" blev ikke fundet i strengen';
+  }
+// giver: "klode" blev ikke fundet i strengen
+?>
+]]>
+     </programlisting>
+    </example>
+   </para>
+   <para>
+    <example>
+     <title>Gør brug af ikke-strengmæssig søgning</title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+  $string = 'APPLE';
+  echo stristr($string, 97); // 97 = lille a
+// giver: APPLE
+?>
+]]>
+      </programlisting>
      </example> 
     </para>
 
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/stripos.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-da/reference/strings/functions/stripos.xml
diff -u phpdoc-da/reference/strings/functions/stripos.xml:1.2 phpdoc-da/reference/strings/functions/stripos.xml:1.3
--- phpdoc-da/reference/strings/functions/stripos.xml:1.2	Mon Jul 26 07:36:59 2004
+++ phpdoc-da/reference/strings/functions/stripos.xml	Tue Jun 14 18:43:04 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.5 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.6 Maintainer: holst Status: ready -->
   <refentry id="function.stripos">
    <refnamediv>
     <refname>stripos</refname>
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/strip-tags.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-da/reference/strings/functions/strip-tags.xml
diff -u phpdoc-da/reference/strings/functions/strip-tags.xml:1.5 phpdoc-da/reference/strings/functions/strip-tags.xml:1.6
--- phpdoc-da/reference/strings/functions/strip-tags.xml:1.5	Sun Sep 12 07:01:01 2004
+++ phpdoc-da/reference/strings/functions/strip-tags.xml	Tue Jun 14 18:43:04 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.10 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.11 Maintainer: holst Status: ready -->
   <refentry id="function.strip-tags">
    <refnamediv>
     <refname>strip_tags</refname>
@@ -66,9 +66,7 @@
 ?>
 ]]>
       </programlisting>
-      <para>
-       Det ovenstående eksempel vil give:
-      </para>
+      &example.outputs;
       <screen>
 <![CDATA[
 Testparagraf. Anden tekst
http://cvs.php.net/diff.php/phpdoc-da/reference/strings/functions/str-replace.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-da/reference/strings/functions/str-replace.xml
diff -u phpdoc-da/reference/strings/functions/str-replace.xml:1.5 phpdoc-da/reference/strings/functions/str-replace.xml:1.6
--- phpdoc-da/reference/strings/functions/str-replace.xml:1.5	Wed Dec 22 16:28:28 2004
+++ phpdoc-da/reference/strings/functions/str-replace.xml	Tue Jun 14 18:43:04 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.17 Maintainer: holst Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.18 Maintainer: holst Status: ready -->
   <refentry id="function.str-replace">
    <refnamediv>
     <refname>str_replace</refname>
@@ -54,8 +54,9 @@
      færre værdier end <parameter>search</parameter>, så bliver der brugt en
      tom streng til resten af erstatningerne. Hvis
      <parameter>search</parameter> er et array og
-     <parameter>replace</parameter> er en streng; så vil denne erstatning
-     blive brugt for hvert element i <parameter>search</parameter>.
+     <parameter>replace</parameter> er en streng, så vil denne erstatning
+     blive brugt for hvert element i <parameter>search</parameter>. Det
+     omvendte ville dog ikke give mening.
     </para>
     <para>
      <example>