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