Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
League
Monga
Query
Update
increment
League\Monga\Query\Update::increment PHP Метод
Документация по классу Update
Показать файл
Открыть проект
increment()
публичный
Метод
Increments a field value.
public
increment
(
string
$field
,
integer
$by
= 1 ) :
object
$field
string
field to increment
$by
integer
value to increment by
Результат
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