Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

PHP object overloading

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.

This is PHP object overloading by Simon Willison, posted on 24th July 2002.

View blog reactions

Next: Instant PHP Web Services

Previous: Random links with Google

0 comments

No comments.

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2002/07/24/phpObjectOverloading

A django site