Next: Notes, Previous: Opcode Handlers, Up: Top [Contents]
Now we know that operator overloading in PHP can be achieved by setting user-defined opcode handlers. However, we should be careful with some details when implementing these functions, otherwise the operators may not work properly as expected.
• Binary Operators | Operators that take two operands. | |
• Binary Assignment Operators | Binary operators with assignment. | |
• Unary Operators | Operators that take one operand. | |
• Unary Assignment Operators | Unary operators with assignment. |