php8.5
Home/ Manual/ sodium / functions/ sodium_increment

sodium_increment

PHP function Edit on GitHub ✎

(PHP 7 >= 7.2.0, PHP 8)

Increment large number

Description

sodium_increment(string $string): void

Treat the string as a little-endian unsigned integer, then increase it by 1. Constant-time.

Parameters

string

String to increment.

Return Values

Void

Source: reference/sodium/functions/sodium-increment.xml · from the official PHP manual (php/doc-en)