i have a class that extends another.
when i iterate the current object i get all properties, even those from the superclass.
i only want to iterate through the current object. how could i do that?
foreach($this as $key => $value) {
echo $key . ': ' . $value;
}