gmp_neg

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
gmp_neg - Negate number
Manual
Code Examples

Example #1 gmp_neg example

Result: -1 1
PHP Version: