Convert decimal to hexadecimal:
The dechex() function converts a decimal number to a hexadecimal number.
Tip: To convert hexadecimal to decimal, look at the hexdec() function.
Parameter | Description |
---|---|
number | Required. Specifies the decimal value to convert |
Return Value: | A string that contains the hexadecimal number of the decimal value |
---|---|
Return Type: | String |
PHP Version: | 4+ |