public static function getValues($subject, $property) {
    $rval = (property_exists($subject, $property) ?
      $subject->{$property} : array());
    return self::arrayify($rval);
  }
public static function getValues($subject, $property) {
    $rval = (property_exists($subject, $property) ?
      $subject->{$property} : array());
    return self::arrayify($rval);
  }
public static function getValues ( $ subject , $ property ) { $ rval = ( property_exists ( $ subject , $ property ) ? $ subject -> { $ property } : array ( ) ) ; return self :: arrayify ( $ rval ) ; }
Gets all of the values for a subject's property as an array.

@param stdClass $subject the subject.
@param string $property the property.

@return array all of the values for a subject's property as an array.
Gets all of the values for a subject s property as an array .