svn: /phpdoc/de/trunk/reference/var/functions/ is-object.xml

[email protected] (Mark Wiesemann)
Newsgroups php.doc.de
Message-ID <[email protected]>
wiesemann                                Mon, 05 Apr 2010 14:35:54 +0000

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

Log:
typo fix / sync to EN

Changed paths:
    U   phpdoc/de/trunk/reference/var/functions/is-object.xml

Modified: phpdoc/de/trunk/reference/var/functions/is-object.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/is-object.xml	2010-04-05 14:35:23 UTC (rev 297503)
+++ phpdoc/de/trunk/reference/var/functions/is-object.xml	2010-04-05 14:35:54 UTC (rev 297504)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 297477 Maintainer: sammywg Status: ready -->

 <refentry xml:id="function.is-object" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -54,19 +54,18 @@
 // 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
-$obj = new stdClass;
-$obj->students = Array('Kalle', 'Ross', 'Felipe');
+// Deklarieren einer neuen Instanz der Klasse und Befüllen mit Werten
+$obj = new stdClass();
+$obj->students = array('Kalle', 'Ross', 'Felipe');

-var_dump(get_students(NULL));
+var_dump(get_students(null));
 var_dump(get_students($obj));
 ?>
 ]]>
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.