lib/MongoHybrid/Client.php
public function hmget($key) {

        $set     = $this->getKey($collection, $key, []);
        $fields  = func_get_args();
        $values  = [];

        for ($i=1; $i<count($fields); $i++){
            $field = $fields[$i];
            $values[] = isset($set[$field]) ? $set[$field]:null;
        }

        return $values;
    }
public function hmget($key) {

        $set     = $this->getKey($collection, $key, []);
        $fields  = func_get_args();
        $values  = [];

        for ($i=1; $i<count($fields); $i++){
            $field = $fields[$i];
            $values[] = isset($set[$field]) ? $set[$field]:null;
        }

        return $values;
    }
public function hmget ( $ key ) { $ set = $ this -> getKey ( $ collection , $ key , [ ] ) ; $ fields = func_get_args ( ) ; $ values = [ ] ; for ( $ i = 1 ; $ i < count ( $ fields ) ; $ i ++ ) { $ field = $ fields [ $ i ] ; $ values [ ] = isset ( $ set [ $ field ] ) ? $ set [ $ field ] : null ; } return $ values ; }
Get the values of all the given hash fields

@param  string $collection
@param  string $key
@return array
Get the values of all the given hash fields