sodium_compare
Compare large numbers
Description
int sodium_compare(#[\SensitiveParameter]string $string1, #[\SensitiveParameter]string $string2)
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.