OpenSwoole\Table->incr

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

Declaration

<?php OpenSwoole\Table->incr(string $key, string $column, int $incrBy = 1): int

Parameters

key

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

column

The column name to update.

decrby

Increase by the value.

Return

Description

In the case of using Table to save counters.

Increase the value of the column by one.

Example

Last updated on February 28, 2026