|
gmp_cmpCompare numbers Beschreibung
int gmp_cmp
( GMP
$a
, GMP $b
)Compares two numbers. Parameter-Liste
RückgabewerteReturns a positive value if a > b, zero if a = b and a negative value if a < b. BeispieleBeispiel #1 gmp_cmp example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 1 -1 0 |