PHP 8.4.6 Released!

sodium_compare

(PHP 7 >= 7.2.0, PHP 8)

sodium_compareCompare large numbers

Açıklama

sodium_compare(#[\SensitiveParameter] string $string1, #[\SensitiveParameter] string $string2): int

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

Bağımsız Değişkenler

string1

Left operand

string2

Right operand

Dönen Değerler

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 page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant