php man page for hexdec

Query: hexdec

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

HEXDEC(3)								 1								 HEXDEC(3)

hexdec - Hexadecimal to decimal

SYNOPSIS
number hexdec (string $hex_string)
DESCRIPTION
Returns the decimal equivalent of the hexadecimal number represented by the $hex_string argument. hexdec(3) converts a hexadecimal string to a decimal number. hexdec(3) will ignore any non-hexadecimal characters it encounters.
PARAMETERS
o $hex_string - The hexadecimal string to convert
RETURN VALUES
The decimal representation of $hex_string
EXAMPLES
Example #1 hexdec(3) example <?php var_dump(hexdec("See")); var_dump(hexdec("ee")); // both print "int(238)" var_dump(hexdec("that")); // print "int(10)" var_dump(hexdec("a0")); // print "int(160)" ?>
NOTES
Note The function can convert numbers that are too large to fit into the platforms integer type, larger values are returned as float in that case.
SEE ALSO
dechex(3), bindec(3), octdec(3), base_convert(3). PHP Documentation Group HEXDEC(3)
Related Man Pages
hex2bin(3) - php
isset(3) - php
base_convert(3) - php
trim(3) - php
reflectionclass.getshortname(3) - php
Similar Topics in the Unix Linux Community
Decimal to Hexadecimal conversion
print decimal values
NAWK conversion of hexadecimal input to decimal output via printf, I am close I can feel it
Hexadecimal to Binary conversion
How to convert dec to hex in python?