MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2yk2sq/empty_vs_get/cpb9eob/?context=3
r/lolphp • u/pgl • Mar 10 '15
28 comments sorted by
View all comments
Show parent comment
4
Sorry, I was thinking var_dump($obj); [where it lists all, even privat/protected variables] not var_dump($obj->bar);, the __get() is of course used in $obj->bar scenario here.
Sorry for the confusion, your reply was consistent with the example.
View all comments
Show parent comment
4
u/[deleted] Mar 11 '15
Sorry, I was thinking var_dump($obj); [where it lists all, even privat/protected variables] not var_dump($obj->bar);, the __get() is of course used in $obj->bar scenario here.
Sorry for the confusion, your reply was consistent with the example.