public static function values($object)
    {
        if ($object instanceof \stdClass)
            $object = (array)$object;

        if (is_array($object))
            return array_values($object);

        $result = [];
        static::each($object, function ($item) use (& $result) {
            $result[] = $item;
        });

        return $result;
    }
public static function values($object)
    {
        if ($object instanceof \stdClass)
            $object = (array)$object;

        if (is_array($object))
            return array_values($object);

        $result = [];
        static::each($object, function ($item) use (& $result) {
            $result[] = $item;
        });

        return $result;
    }
public static function values ( $ object ) { if ( $ object instanceof \ stdClass ) $ object = ( array ) $ object ; if ( is_array ( $ object ) ) return array_values ( $ object ) ; $ result = [ ] ; static :: each ( $ object , function ( $ item ) use ( & $ result ) { $ result [ ] = $ item ; } ) ; return $ result ; }
Return all of the values of the object's properties.

@category Object Functions

@param traversable $object the list from which the values are extracted

@return array
Return all of the values of the object s properties .