Magic methods (__construct(), __destruct(), __get(), __set(), __isset(), etc. ) give you tools to create flexible application frameworks in PHP by giving your PHP objects qualities had by objects in other object oriented languages. Here’s an excellent tutorial over at net.tutsplus showing how to use each magic method. Net.tutsplus always offers such excellent resources on their site–I would assume that most readers of this blog would already be aware of them but if you haven’t discovered them yet, the range and depth of their tutorials and resources are really outstanding and worthy of putting them into your RSS feed reader in my opinion.
PHP Magic Methods
Previous post: Automating Your OSX Terminal Environment
Next post: Flex 3 To Flex 4 Migration

