mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
bd0b197550
commit
4439b2802b
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue