(PHP 4 >= 4.0.4, PHP 5)
gmp_com — 1 の補数を計算する
a について、1 の補数を返します。
It can be either a GMP number resource, or a numeric string given that it is possible to convert the latter to a number.
a についての 1 の補数を GMP 数で返します。
Example#1 gmp_com() の例
<?php
$com = gmp_com("1234");
echo gmp_strval($com) . "\n";
?>
上の例の出力は以下となります。
-1235