PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<gmp_cmpgmp_div_q>
Last updated: Sat, 20 Oct 2007

gmp_com

(PHP 4 >= 4.0.4, PHP 5)

gmp_com -- Calculates one's complement

Description

resource gmp_com ( resource a )

Returns the one's complement of a.

例子 1. gmp_com() example

<?php
$com
= gmp_com("1234");
echo
gmp_strval($com) . "\n";
?>

The printout of the above program will be:

-1235



<gmp_cmpgmp_div_q>
 Last updated: Sat, 20 Oct 2007
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST