News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Naberezny's Blog:
pecl/operator and Other Neat Stuff
February 02, 2006 @ 06:42:59

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. Later in the post, he also looks at a related package (also by Sara) that allows for self-modifying code in PHP - pecl/runkit.

1 comment voice your opinion now!
pecl/operator magic methods operator overloading pecl/operator magic methods operator overloading


blog comments powered by Disqus

Similar Posts

Greg Beaver's Blog: phpDocumentor and __get/__set/__call - give us your ideas (RFC)

PHP 10.0 Blog: duck operator

IBM developerWorks: Mastering regular expressions in PHP, Part 1

Derick Rethans' Blog: Overloaded properties (__get)

WebReference.com: The Building Blocks: Data Types, Literals, Variables, and Constants - Part 3


Community Events





Don't see your event here?
Let us know!


release framework api symfony bugfix tips introduction library language community list interview voicesoftheelephpant laravel series deployment package opinion install podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework