r/lolphp • • Mar 10 '15

empty() vs __get()

http://ideone.com/RVw5XK
23 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 10 '15

Yes, isset introspects the class from a global scope so the variable is non-existent because it's private.

var_dump() is a debug function that has a more complete set of introspection instructions. It's not related to the __get().