English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Fonction dechex() dans PHP

Ledechex()La fonction convertit le décimal en hexadécimal. Elle retourne une chaîne hexadécimale spécifique du nombre décimal.

Syntaxe

dechex(num)

paramètre

  • num-La valeur décimale à convertir

retourne

Ledechex()La fonction retourne une chaîne hexadécimale spécifique du nombre décimal.

Exemple

<?php
   echo dechex("15") . "<br>";
   echo dechex("1990");
?>

Résultat de la sortie

f<br>7c6