Difference between revisions of "ObjectsAndRefs"
From Hashphp.org
Line 13: | Line 13: | ||
<tr><td colspan="2"> | <tr><td colspan="2"> | ||
The above code creates a new class, SimpleClass, with no properties or methods. | The above code creates a new class, SimpleClass, with no properties or methods. | ||
− | It then creates a new instance of this class and | + | It then creates a new instance of this class and attaches it to the variable named '$instance'. |
</td></tr> | </td></tr> | ||
Revision as of 15:45, 26 July 2011
This page attempts to provide a visual guide to how objects - and references to them - work in PHP 5.0 and later.