Added quick note based on Bug #48055.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@280158 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel P. Brown 2009-05-08 13:40:26 +00:00
parent bd0b197550
commit 4439b2802b

View file

@ -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 @@ EOT;
<![CDATA[
<?php
$instance = new SimpleClass();
// This can also be done with a variable:
$className = 'Foo';
$instance = new $className(); // Foo()
?>
]]>
</programlisting>