PHP: gmp_sub - Manual

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

search for in the

gmp_xor gmp_strval

Last updated: Sat, 27 Jan 2007

view this page in

# gmp_sub

(PHP 4 >= 4.0.4, PHP 5)

gmp_sub -- Subtract numbers

## Description

resource gmp_sub ( resource a, resource b )

Subtracts `b` from `a` and returns the result.

Пример 1. gmp_sub() example

`<?php $sub = gmp_sub("281474976710656", "4294967296"); // 2^48 - 2^32 echo gmp_strval($sub) . "\n"; ?>`

The printout of the above program will be:

    281470681743360

add a note User Contributed Notes
gmp_sub
There are no user contributed notes for this page.
gmp_xor gmp_strval

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