svn: /phpdoc/en/trunk/reference/classobj/ examples.xml

From: Date: Wed, 02 Sep 2015 21:50:07 +0000
Subject: svn: /phpdoc/en/trunk/reference/classobj/ examples.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13688@lists.php.net to get a copy of this message
cmb Wed, 02 Sep 2015 21:50:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337717 Log: fixed example Changed paths: U phpdoc/en/trunk/reference/classobj/examples.xml Modified: phpdoc/en/trunk/reference/classobj/examples.xml =================================================================== --- phpdoc/en/trunk/reference/classobj/examples.xml 2015-09-02 21:30:00 UTC (rev 337716) +++ phpdoc/en/trunk/reference/classobj/examples.xml 2015-09-02 21:50:07 UTC (rev 337717) @@ -105,8 +105,8 @@ function class_parentage($obj, $class) { if (is_subclass_of($GLOBALS[$obj], $class)) { - echo "Object $obj belongs to class " . get_class($$obj); - echo " a subclass of $class\n"; + echo "Object $obj belongs to class " . get_class($GLOBALS[$obj]); + echo ", a subclass of $class\n"; } else { echo "Object $obj does not belong to a subclass of $class\n"; } @@ -149,7 +149,7 @@ [...] Parentage: Object leafy does not belong to a subclass of Spinach -Object leafy belongs to class spinach a subclass of Vegetable +Object leafy belongs to class spinach, a subclass of Vegetable ]]> </screen> </example>

« previous php.doc.cvs (#13688) next »