First off let's consider just what namespaces are and what they would give us. Basically namespaces are a way of grouping things together so that parts of one thing that just happen to have the same name as parts of some other thing don't get mixed up. For example, both a book and a web page can have a title. Giving each their own namespace means that we can readily determine when referencing a title whether that title is a book title or a web page title. XML and XHTML do support namespaces and so we could readily use namespaces to determine which title is which in that instance by looking to see what namespace the title is in.
- Extending Built In Objects
- Creating Objects from Existing Objects
- Creating New Objects Without Copying Existing Ones
- Dot Notation and "this"
- Inheritance and "constructor"
- Associative Array Notation
- Create Method if Doesn't Exist
- "self" and Multiple Objects
- Defining Objects with JSON
- Lazy Definition
- Extending Methods
- Copying Objects
- Private Properties and Privileged Methods
- Public Access to Private Methods
- Chaining Methods