decbin
<<<
dechex decoct
>>>

6.18 Mathématiques
6 Référence des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Types de ressources
Constantes pré-définies
abs
acos
acosh
asin
asinh
atan
atan2
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
log
log10
log1p
max
min
mt_getrandmax
mt_rand
mt_srand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
srand
tan
tanh

6.18.21 dechex()Convertit de décimal en hexadécimal

[ Exemples avec dechex ]   PHP 3, PHP 4, PHP 5

string  dechex ( int   number )

dechex retourne une chaîne contenant la représentation hexadécimale du nombre number . Le nombre le plus grand qui puisse être converti est 4294967295 en décimal, ce qui donnera "ffffffff".

Exemple avec dechex

<?php
echo dechex(10) . "\n";
echo
dechex(47);
?>

Voir aussi hexdec , decbin , decoct et base_convert .

<< dechex >>
decbin Mathématiques decoct