
Quick Disclaimer: Even if you know about PHP5 Method Chaining, don’t skip this article, because we will explore more than just that.
If you’re familiar with jQuery, you might know how it let’s you write short and clean code with the help of method chaining.
Not only will I show you how to accomplish this in PHP5, but I will also combine this feature with magic setter methods with the help of method overloading to make it even nicer.
It’s OK if you don’t know any of these terms. You should still be able to become familiarized with them by reading this article.