cvs: phpdoc /en/language/oop5 basic.xml
| From: | Daniel P. Brown | Date: | Fri, 08 May 2009 13:40:26 +0000 |
| Subject: | cvs: phpdoc /en/language/oop5 basic.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3982@lists.php.net to get a copy of this message | ||
danbrown Fri May 8 13:40:26 2009 UTC
Modified files:
/phpdoc/en/language/oop5 basic.xml
Log:
Added quick note based on Bug #48055.
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/basic.xml?r1=1.26&r2=1.27&diff_format=u
Index: phpdoc/en/language/oop5/basic.xml
diff -u phpdoc/en/language/oop5/basic.xml:1.26 phpdoc/en/language/oop5/basic.xml:1.27
--- phpdoc/en/language/oop5/basic.xml:1.26 Fri Apr 18 19:22:12 2008
+++ phpdoc/en/language/oop5/basic.xml Fri May 8 13:40:26 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.26 $ -->
+<!-- $Revision: 1.27 $ -->
<sect1 xml:id="language.oop5.basic" xmlns="http://docbook.org/ns/docbook">
<title>The Basics</title>
@@ -165,6 +165,10 @@
<![CDATA[
<?php
$instance = new SimpleClass();
+
+// This can also be done with a variable:
+$className = 'Foo';
+$instance = new $className(); // Foo()
?>
]]>
</programlisting>