Swoole\Table->decr

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.10.0

Declaration

<?php
Swoole\Table->decr(string $key, string $column, int $decrBy = 1): int

Parameters

key

The key value of the column, the value of the first column.

column

The column name to update.

decrby

Reduce by the value.

Return

Description

Reduce the value of the column by one.

Example