Operator Overloading¶
Operator overloading is the feature that creates custom usage of operators. For example, C++ allows the redefinition of + for specific object types. Then, new A + new A works.
PHP does not support operator overloading in the userland. It is possible to achieve it in extensions: for example, BCmath allows math operations on its objects.
See also Operator Overloading in C++.
Related : Operators, Inheritance