How to find all non static class attributes

riverawolf

New Member
I want to get all non static class vars from a class. The problem I have is in the "Non static" part. The following:\[code\]foreach(array_keys(get_class_vars(get_called_class())) AS $key) { echo $key;}\[/code\]How can I find out $key is a static property or a non static. I know I could try something like:\[code\]@$this->$key\[/code\]But there must be a better way to check this.Anybody?
 
Back
Top