Getter context

What is a ‘getter context’?

PHP invokes the __get() method if a property is undefined (or inaccessible) and called in a getter context. The method accepts one argument, the name of the property. It should return a value which is treated as the value of the property.

Just to clarify: you’re asking a question about a quote from this article? http://www.sitepoint.com/magic-methods-and-predefined-constants-in-php/

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.