Returns an associative array of the properties for the given
object. For each property, an element with
a key of the property name and a value of the current value is added
to the array. Properties that do not have current values are not
returned in the array, even if they are defined in the class.