Easy Tutorial
❮ Func Misc Time Sleep Until Func Curl_Strerror ❯

PHP dechex() Function

PHP Math Reference Manual

Example

Convert decimal to hexadecimal:


Definition and Usage

The dechex() function converts a decimal number to a hexadecimal number.

Note: To convert a hexadecimal to a decimal, see the hexdec() function.


Syntax

Parameter Description
number Required. Specifies the decimal value to convert.

Technical Details

Return Value: A string containing the hexadecimal number of the decimal value.
Return Type: String
--- ---
PHP Version: 4+
--- ---
❮ Func Misc Time Sleep Until Func Curl_Strerror ❯