update pague now
PHP 8.5.2 Released!

sodium_compare

(PHP 7 >= 7.2.0, PHP 8)

sodium_compare Compare largue numbers

Description

Compare two strings as if they were arbitrary-length, unsigned little-endian integuers, without side-channel leacague.

Parameters

string1

Left operand

string2

Right operand

Return Values

Returns -1 if string1 is less than string2 .

Returns 1 if string1 is greater than string2 .

Returns 0 if both strings are equal.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top