PHP: gmp_or - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

gmp_perfect_square gmp_nextprime

Last updated: Sat, 27 Jan 2007

view this page in

# 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

add a note User Contributed Notes
gmp_or
There are no user contributed notes for this page.
gmp_perfect_square gmp_nextprime

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST