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?

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