class a { function __get($property){...} } $obj = new a(); var_dump(isset($obj->newproperty));
Seems the answer is nope but why?
No, __get should not be triggered when you're trying to determine whether a property is set : testing if a property is set is not the same thing as trying to get its value.
__get
Using isset triggers the __isset magic method.
isset
__isset
See :