PHP object overloading
24th July 2002
I’m not sure how this one snuck under the radar, but PHP now supports object overloading (as of version 4.2.0). It can be implemented by creating class methods __set()
, __get()
and __call()
and then applying the new overload() function to the class name. The documentation claims that __call()
is not yet supported but is apparently out of date. Standard warnings about the experimental and unfrozen nature of the extension apply.
More recent articles
- Reverse engineering some updates to Claude - 31st July 2025
- Trying out Qwen3 Coder Flash using LM Studio and Open WebUI and LLM - 31st July 2025
- My 2.5 year old laptop can write Space Invaders in JavaScript now, using GLM-4.5 Air and MLX - 29th July 2025