PHP invokes the __get() method if a property is undefined (or inaccessible) and called in a [B]getter context[/B]. The method accepts one argument, the name of the property. It should return a value which is treated as the value of the property.
@NogDogSep 05.2015 — #That context just means that it looks like you're calling an object property: [code=php] $foo = new Foo(); echo $foo->bar; [/code] In that little example, if there is no public property of Foo name "bar", then if Foo has a __get() method, it would be invoked with 'bar' as its argument.