Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.abs
.acos
.acosh
.asin
.asinh
.atan2
.atan
.atanh
.base convert
.bindec
.ceil
.cos
.cosh
.decbin
.dechex
.decoct
.deg2rad
.exp
.expm1
.floor
.fmod
.getrandmax
.hexdec
.hypot
.is finite
.is infinite
.is nan
.lcg value
.log10
.log1p
.log
.max
.min
.mt getrandmax
.mt rand
.mt srand
.octdec
.pi
.pow
.rad2deg
.rand
.round
.sin
.sinh
.sqrt
.srand
.tan
.tanh
 
   

  bindec  


bindec

(PHP 3, PHP 4, PHP 5)

bindec -- Convertit de binaire en décimal

Description

number bindec ( string binary_string )

bindec() retourne la conversion d'un nombre binaire représenté par la chaîne binary_string en décimal.

bindec() convertit un nombre binaire en décimal. Le plus grand nombre convertible a 31 bits à 1, soit 2147483647 en décimal. Depuis PHP 4.1.0, cette fonction peut également convertir de très grands nombres. Elle retourne un nombre de type float dans ce cas.

Exemple 1. Exemple avec bindec()

<?php
echo bindec('110011') . "\n";
echo
bindec('000110011') . "\n";

echo
bindec('111');
?>

L'exemple ci-dessus va afficher :

51
51
7

Voir aussi decbin(), octdec(), hexdec() et base_convert().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.