|
PHP5中文手册
gmp_cmp(PHP 4 >= 4.0.4, PHP 5) gmp_cmp — Compare numbers 说明
int gmp_cmp
( resource $a
, resource $b
)
Compares two numbers. 参数
返回值Returns a positive value if a > b, zero if a = b and a negative value if a < b. 范例Example#1 gmp_cmp() example
<?php 上例将输出:
|