September 2001
Intermediate to advanced
768 pages
32h 45m
English
string dechex(int dec) Returns the hexadecimal notation for the given decimal argument.
Returns:
String representation of a hexadecimal number
Description:
Converts a decimal number into a hexadecimal number represented as a string. The largest decimal value that can be converted is 2147483647.
Version:
PHP 3, PHP 4
See also:
base_convert() bindec() decbin() hexdec() decoct() octdec()
Example:
$dec = "54321"; echo "The hexadecimal of $dec is ", dechex($dec); |
Read now
Unlock full access