array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.sodium-add.php', 1 => 'sodium_add', ), 'up' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium 函数', ), 'prev' => array ( 0 => 'ref.sodium.php', 1 => 'Sodium 函数', ), 'next' => array ( 0 => 'function.sodium-base642bin.php', 1 => 'sodium_base642bin', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sodium/functions/sodium-add.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 7 >= 7.2.0, PHP 8)
sodium_add — Add large numbers
This adds the parameter string2
to string1
, overwriting
the value stored in string1
. This function assumes both parameters are binary
strings that represent unsigned integers in little-endian byte order.
string1
String representing an arbitrary-length unsigned integer in little-endian byte order. This parameter is passed by reference and will hold the sum of the two parameters.
string2
String representing an arbitrary-length unsigned integer in little-endian byte order.
没有返回值。