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
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024
- Visualizing local election results with Datasette, Observable and MapLibre GL - 9th November 2024
- Project: VERDAD - tracking misinformation in radio broadcasts using Gemini 1.5 - 7th November 2024