get_object_vars explanation needed
<p>one of my php tutorial is showing bellow function. i know it is used to check attribute existence but  and i couldn't get its real meaning, i mean what is the meaning of its comment lines ? can anyone explain it to me?</p>

<pre><code>private function has_attribute($attribute) {
            //get_object_vars returns an associative array with all attributes
            //(incl.private ones!) as the keys and their current values as the value
            $object_vars = get_object_vars($this);
            //we don't care about the value, we just want to know if the key exists
            //will return true or false
            return array_key_exists($attribute, $object_vars);
        }
</code></pre>
