Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login
(PHP 4 >= 4.0.4, PHP 5)
Returns 1 if a is positive, -1 if a is negative, and 0 if a is zero.
예 1. gmp_sign() example
<?php// positiveecho gmp_sign("500") . "\n";// negativeecho gmp_sign("-500") . "\n";// zeroecho gmp_sign("0") . "\n";?>
The printout of the above program will be:
1 -1 0
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account
Document on this page is part of "PHP 매뉴얼". See Index Page for more info about Authorship and Copyright.
1999-2009 Linuxinfor.com. No rights reserved.