Lazy wrapping with PHP5’s __call method

Saturday, 8 April 2006, 8:47 | Category : Software Development
Tags :

The overloading features in PHP5 allow you to intercept calls to unknown methods at runtime. I recently used this feature to rapidly develop a class wrapper for Xapian, and it’s interesting to see how the technique works and what it achieves.
In this article, I’ll explain how you can use __call to wrap a flat function-based [...]