PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<gmp_neggmp_perfect_square>
Last updated: Mon, 16 Jul 2012

gmp_or

(PHP 4 >= 4.0.4, PHP 5)

gmp_or -- Logical OR

Description

resource gmp_or ( resource a, resource b )

Calculates logical inclusive OR of two GMP numbers.

例子 1. gmp_or() example

<?php
$or1
= gmp_or("0xfffffff2", "4");
echo
gmp_strval($or1, 16) . "\n";
$or2 = gmp_or("0xfffffff2", "2");
echo
gmp_strval($or2, 16) . "\n";
?>

The printout of the above program will be:

fffffff6
fffffff2



<gmp_neggmp_perfect_square>
 Last updated: Mon, 16 Jul 2012
 
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