mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
define $instance and make the example more clear
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@294876 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5cc722a070
commit
71a9cd7583
1 changed files with 3 additions and 0 deletions
|
@ -149,6 +149,9 @@ $instance = new $className(); // Foo()
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$instance = new SimpleClass();
|
||||
|
||||
$assigned = $instance;
|
||||
$reference =& $instance;
|
||||
|
||||
|
|
Loading…
Reference in a new issue