lib/MongoHybrid/Client.php
public function hincrby($collection, $key, $field, $by = 1) {

        $current = $this->hget($collection, $key, $field, 0);
        $newone  = $current+$by;

        $this->hset($collection, $key, $field, $newone);

        return $newone;
    }
public function hincrby($collection, $key, $field, $by = 1) {

        $current = $this->hget($collection, $key, $field, 0);
        $newone  = $current+$by;

        $this->hset($collection, $key, $field, $newone);

        return $newone;
    }
public function hincrby ( $ collection , $ key , $ field , $ by = 1 ) { $ current = $ this -> hget ( $ collection , $ key , $ field , 0 ) ; $ newone = $ current + $ by ; $ this -> hset ( $ collection , $ key , $ field , $ newone ) ; return $ newone ; }
Increment the integer value of a hash field by the given number

@param  string  $key
@param  string  $field
@param  integer $by
@return integer
Increment the integer value of a hash field by the given number