svn: /phpdoc/de/trunk/reference/var/functions/ is-bool.xml is-numeric.xml is-object.xml print-r.xml strval.xml unset.xml

[email protected] ("Carola 'Sammy' Kummert")
Newsgroups php.doc.de
Message-ID <[email protected]>
sammywg                                  Fri, 19 Mar 2010 08:04:32 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=296372

Log:
sync with en

Changed paths:
    U   phpdoc/de/trunk/reference/var/functions/is-bool.xml
    U   phpdoc/de/trunk/reference/var/functions/is-numeric.xml
    U   phpdoc/de/trunk/reference/var/functions/is-object.xml
    U   phpdoc/de/trunk/reference/var/functions/print-r.xml
    U   phpdoc/de/trunk/reference/var/functions/strval.xml
    U   phpdoc/de/trunk/reference/var/functions/unset.xml
svn-diffs-296372.txt (text/x-diff, 8.6 KB)
Modified: phpdoc/de/trunk/reference/var/functions/is-bool.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/is-bool.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/is-bool.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,14 +1,15 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
-<!-- splitted from ./de/functions/var.xml, last change in rev 1.15 -->
+<!-- EN-Revision: 293064 Maintainer: sammywg Status: ready -->
+
 <refentry xml:id="function.is-bool" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>is_bool</refname>
   <refpurpose>
-   Prüft, ob eine Variable vom Typ boolean ist
+   Prüft, ob eine Variable vom Typ boolean ist
   </refpurpose>
  </refnamediv>
+
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
@@ -16,9 +17,10 @@
    <methodparam><type>mixed</type><parameter>var</parameter></methodparam>
   </methodsynopsis>
   <para>
-   Prüft, ob die gegebene Variable ein Boolean ist.
+   Prüft, ob die gegebene Variable ein Boolean ist.
   </para>
  </refsect1>
+
  <refsect1 role="parameters">
   &reftitle.parameters;
   <para>
@@ -34,13 +36,15 @@
    </variablelist>
   </para>
  </refsect1>
+
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   Gibt &true; zurück, wenn <parameter>var</parameter> vom Typ
+   Gibt &true; zurück, wenn <parameter>var</parameter> vom Typ
    <type>boolean</type> ist, ansonsten &false;.
   </para>
  </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -52,14 +56,14 @@
 $a = false;
 $b = 0;

-// Da $a ein Boolean ist, ergibt der Ausdruck true
+// Da $a ein Boolean ist, wird true zurückgegeben
 if (is_bool($a)) {
     echo "Ja, das ist ein Boolean";
 }

-// Da $b kein Boolean ist, ergibt der Ausdruck nicht true
+// Da $b kein Boolean ist, wird false zurückgegeben
 if (is_bool($b)) {
-    echo "Ja, das ist ein Boolean";
+    echo "Nein, dies ist kein Boolean";
 }
 ?>
 ]]>
@@ -67,6 +71,7 @@
    </example>
   </para>
  </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
@@ -79,8 +84,10 @@
    </simplelist>
   </para>
  </refsect1>
+
 </refentry>

+
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/de/trunk/reference/var/functions/is-numeric.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/is-numeric.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/is-numeric.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
-<!-- splitted from ./de/functions/var.xml, last change in rev 1.24 -->
+<!-- EN-Revision: 294837 Maintainer: sammywg Status: ready -->
+
 <refentry xml:id="function.is-numeric" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>is_numeric</refname>
@@ -59,29 +59,40 @@
 <![CDATA[
 <?php
 $tests = Array(
-  "42",
-  1337,
-  "1e4",
-  "nicht numerisch",
-  Array(),
-  9.1
-  );
+    "42",
+    1337,
+    "1e4",
+    "nicht numerisch",
+    Array(),
+    9.1
+    );

 foreach($tests as $element)
 {
-  if(is_numeric($element))
-  {
-    echo "'{$element}' ist numerisch", PHP_EOL;
-  }
-  else
-  {
-    echo "'{$element}' ist NICHT numerisch", PHP_EOL;
-  }
+    if(is_numeric($element))
+    {
+        echo "'{$element}' ist numerisch", PHP_EOL;
+    }
+    else
+    {
+        echo "'{$element}' ist NICHT numerisch", PHP_EOL;
+    }
 }
 ?>
 ]]>
     </programlisting>
-   </example>
+    &example.outputs;
+			 <screen>
+<![CDATA[
+			'42' ist numerisch
+			'1337' ist numerisch
+			'1e4' ist numerisch
+			'nicht numerisch' ist NICHT numerisch
+			'Array' ist NICHT numerisch
+			'9.1' ist numerisch
+]]>
+			 </screen>
+		 </example>
   </para>
  </refsect1>


Modified: phpdoc/de/trunk/reference/var/functions/is-object.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/is-object.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/is-object.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 294415 Maintainer: sammywg Status: ready -->
+
 <refentry xml:id="function.is-object" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>is_object</refname>
@@ -53,12 +54,12 @@
 // Eine einfache Funktion deklarieren, die ein Array unseres Objekts zurückgibt
 function get_students($obj)
 {
-	if(!is_object($obj))
-	{
-		return(false);
-	}
+    if(!is_object($obj))
+    {
+        return(false);
+    }

-	return($obj->students);
+    return($obj->students);
 }

 // Deklarieren einer neue Instanz der Klasse und befüllen mit Werten

Modified: phpdoc/de/trunk/reference/var/functions/print-r.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/print-r.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/print-r.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
 <!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+
 <refentry xml:id="function.print-r" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>print_r</refname>
@@ -51,8 +52,8 @@
        Wenn Sie die Ausgabe von <function>print_r</function> zum
        Weiterverarbeiten abfangen möchten, benutzen Sie dazu den Parameter
        <parameter>return</parameter>. Wenn dieser auf &true; gesetzt ist, gibt
-       <function>print_r</function> die Ausgabe in einer Variablen zurück,
-       anstatt sie am Bildschirm auszugeben (was dem Standard entspricht).
+       <function>print_r</function> eher die Information zurück als sie
+       auszudrucken.
       </para>
      </listitem>
     </varlistentry>
@@ -70,6 +71,11 @@
    die Elemente darstellt. Für Variablen vom Typ <type>object</type> gilt das
    Gleiche.
   </para>
+  <para>
+   Wenn der Parameter <parameter>return</parameter> den Wert &true; hat, gibt
+   die Funktion einen <type>String</type> zurück. Andernfalls ist der
+   Rückgabewert &true;.
+  </para>
  </refsect1>

  <refsect1 role="notes">

Modified: phpdoc/de/trunk/reference/var/functions/strval.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/strval.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/strval.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288981 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 294415 Maintainer: sammywg Status: ready -->

 <refentry xml:id="function.strval" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -67,10 +67,10 @@
 <?php
 class StrValTest
 {
- public function __toString()
- {
-  return __CLASS__;
- }
+    public function __toString()
+    {
+        return __CLASS__;
+    }
 }

 // Gibt 'StrValTest' aus

Modified: phpdoc/de/trunk/reference/var/functions/unset.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/unset.xml	2010-03-19 06:44:25 UTC (rev 296371)
+++ phpdoc/de/trunk/reference/var/functions/unset.xml	2010-03-19 08:04:32 UTC (rev 296372)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 293483 Maintainer: sammywg Status: ready -->

 <refentry xml:id="function.unset" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -58,8 +58,8 @@
    </informalexample>
   </para>
   <para>
-   Wenn Sie eine globale Variable innerhalb einer Funktion löschen wollen,
-   können Sie das <varname>$GLOBALS</varname>-Array dazu verwenden:
+   Um eine globale Variable innerhalb einer Funktion zu löschen,
+   kann das <varname>$GLOBALS</varname>-Array verwendet werden:
    <informalexample>
     <programlisting role="php">
 <![CDATA[
@@ -209,13 +209,6 @@
         Unterstützung für multiple Argumente hinzugefügt.
        </entry>
       </row>
-      <row>
-       <entry>4.0.0</entry>
-       <entry>
-        <function>unset</function> wird ein Ausdruck. (In PHP 3 gibt
-        <function>unset</function> immer 1 zurück).
-       </entry>
-      </row>
      </tbody>
     </tgroup>
    </informaltable>
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.