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
 
   

  octdec  


octdec

(PHP 3, PHP 4, PHP 5)

octdec -- Conversion d'octal en décimal

Description

number octdec ( string octal_string )

octdec() retourne une chaîne contenant la représentation décimale du nombre octal_tring. Le nombre le plus grand qui puisse être converti est 17777777777 en décimal, ce qui donnera "2147483647". 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 octdec()

<?php
echo octdec('77') . "\n";
echo
octdec(decoct(45));
?>

L'exemple ci-dessus va afficher :

63
45

Voir aussi decoct(), bindec(), 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
.