Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
League
Monga
Query
Update
increment
League\Monga\Query\Update::increment PHP Method
Update Class Documentation
Show file
Open project: php-loep/monga
increment()
public
method
Increments a field value.
public
increment
(
string
$field
,
integer
$by
= 1 ) :
object
$field
string
field to increment
$by
integer
value to increment by
return
object
$this
public function increment($field, $by = 1) { return $this->update('$inc', $field, (int) $by); }
Update
addToSet
atomic
getOptions
getUpdate
increment
multiple
pop
pull
pullAll
push
pushAll
remove
rename
set
single
unshift
update
upsert