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

La funzione dechex() in PHP

Questodechex()La funzione converte il decimale in esadecimale. Restituisce una stringa esadecimale specifica del decimale.

Sintassi

dechex(num)

Parametro

  • num-Il valore decimale da convertire

Restituisce

Questodechex()La funzione restituisce una stringa esadecimale specifica del decimale.

Esempio

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

Risultato di output

f<br>7c6