I want to check if a local variable in a class is public or private. The reason is to create a function like this:
function ToArray() { $arr = array(); forea
Make sure to follow some naming convention with your private variables (like i prepend them with _)
_
Then just return those variables that do not have _ in the beginning of their key.