Mike Naberezny's Blog: pecl/operator and Other Neat Stuff
Mike Naberezny has this new post on his blog today about the latest extension submitted by Sara Golemon to the PECL library - the pecl/operator extension.
This extension adds operator overloading support to PHP 5. I don’t think operator overloading fits the “PHP spirit” and as such I speculate it probably won’t ever make it into the core. Regardless, it’s interesting that this extension is now available and certainly makes for some fun experiments, especially if you’re already familiar with techniques from languages like C++.
He gives some sample code, and mentions the "magic methods" the extension allows.... [ read the rest ]
Read the full article on PHPDeveloper - Posted on 01/02/06
|