Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: gmp_cmp - Manual
[go: Go Back, main page]

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

search for in the

gmp_com" width="11" height="7"/> <gmp_clrbit
Last updated: Mon, 05 Feb 2007

view this page in

gmp_cmp

(PHP 4 >= 4.0.4, PHP 5)

gmp_cmp — 数を比較する

説明

int gmp_cmp ( resource a, resource b )

a > b の場合に正の値、a = b の場合にゼロ、a < b の場合に負の値を返します。

例 728. gmp_cmp() の例

<?php
$cmp1
= gmp_cmp("1234", "1000"); // より大きい
$cmp2 = gmp_cmp("1000", "1234"); // より小さい
$cmp3 = gmp_cmp("1234", "1234"); // 等しい

echo "$cmp1 $cmp2 $cmp3\n";
?>

上のプログラムの出力は以下のようになります。


1 -1 0

     



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

gmp_com" width="11" height="7"/> <gmp_clrbit
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites