Is the property declared in the class?

Output:

var0 here    
var1 here  
var2 here  
there is no var3

Doable? How?
P.S. isset didn’t work “for some reason”.


Answer 1, authority 100%

And if you try functions:

print_r(get_class_vars("MyClass"));
print_r(get_class_methods("MyClass"));

Which return everything in arrays and also return initial values.
And, as I understand it, it is not in vain that you use the private, publicand protectedmodifiers in the class. So these functions just work correctly with modifiers.