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