Swat/Swat.php
public static function displayProperties($object)
    {
        $class = get_class($object);

        echo sprintf(self::_('Properties for class %s:'), $class);
        echo '<ul>';

        foreach (get_class_vars($class) as $property_name => $value) {
            $instance_value = $object->$property_name;
            echo '<li>', $property_name, ' = ', $instance_value, '</li>';
        }

        echo '</ul>';
    }
public static function displayProperties($object)
    {
        $class = get_class($object);

        echo sprintf(self::_('Properties for class %s:'), $class);
        echo '<ul>';

        foreach (get_class_vars($class) as $property_name => $value) {
            $instance_value = $object->$property_name;
            echo '<li>', $property_name, ' = ', $instance_value, '</li>';
        }

        echo '</ul>';
    }
public static function displayProperties ( $ object ) { $ class = get_class ( $ object ) ; echo sprintf ( self :: _ ( 'Properties for class %s:' ) , $ class ) ; echo '<ul>' ; foreach ( get_class_vars ( $ class ) as $ property_name => $ value ) { $ instance_value = $ object -> $ property_name ; echo '<li>' , $ property_name , ' = ' , $ instance_value , '</li>' ; } echo '</ul>' ; }
Displays the properties of an object

This is useful for debugging.

@param mixed $object the object whose properties are to be displayed.
Displays the properties of an object