DevShed has posted the third part of their "User-defined Interfaces in PHP5" series today, this one focusing on the conversion of MySQL classes into interface implementors.
Returning to this part of the series, I'll demonstrate how useful interfaces can be, by implementing the "HTMLRenderer" interface on a couple of MySQL processing classes that have nothing in common with the (X)HTML widgets explained in the previous tutorial. In this way, by the end of this article you'll have a decent background for working with interfaces as well as a clear idea about its concrete implementation in PHP applications.
By using the code generated in the previous tutorial of the series, they show you how to use it in a more real-life situation, rendering the results in an HTML automatically...