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

Eran Gelperin's Blog:
Operator overloading in PHP
Jul 08, 2008 @ 11:29:54

Eran Gelperin gives an overview of the current state of overloading abilities PHP has in a new blog post today:

Operator overloading is a programming language features that allows operators to act differently depending on the type of data they are operating on. Since OOP lets us create custom types (classes), there are plenty of opportunities to do useful and interesting code manipulations using operator overloading.

He talks about magic functions, the additions that the SPL made, the PECL addition operator and how much its currently being discussed on the PHP internals list.

tagged: operator overload spl magic function operator internals mailing list

Link: