Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

gmp_strval

(PHP 4 >= 4.0.4, PHP 5)

gmp_strval -- Convertit un nombre GMP en chaîne

Description

string gmp_strval ( resource gmpnumber [, int base])

gmp_strval() convertit un nombre GMP en chaîne de caractères, dans la base base. La base par défaut est 10. Les valeurs possibles vont de 2 à 36.

Exemple 1. Conversion d'un nombre GMP en chaîne

<?php
$a
= gmp_init("0x41682179fbf5");
printf("Décimal : %s, base 36: %s",
       
gmp_strval($a), gmp_strval($a, 36));
?>

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuel PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.