PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Programs, unlike people, always do exactly what you tell them to. It can be quite annoying.
$untitled is a local variable to the function __construct(). It is undefined in the example you posted. If you want to show the property of the same name, the code would be:
ok that makes sense. Now, I've worked with some CMS's and Frameworks, and when making extensions/modules to them, the extensions/modules have access to various classes in the API such as $db, without having to define/instantiate the class - it just has access to it. How does a structure like that work?