David Sklar has posted the slides and sample code from his talk at the New York PHP Conference given earlier today. He covered "Metaprogramming with PHP".
Metaprogramming is a handy approach for object-relational mapping tools, web-programming frameworks, and other problem domains where building a new programming language on top of an old one becomes the shortest route to a solution.
PHP's 'solve the web problem' aesthetic makes some metaprogramming tasks difficult, but it nevertheless has a large collection of features that let you programmatically tweak syntax, style, and other coding aspects.
His talk looks at various methods to help you get started, including working with the "magic methods" and SPL interfaces.