HexDec

HexDec -- 16 進数を 10 進数に変換します。

説明

int hexdec(string hex_string);

Returns the decimal equivalent of the hexadecimal number represented by the hex_string argument. HexDec converts a hexadecimal string to a decimal number. The largest number that can be converted is 7fffffff or 2147483647 in decimal. 引数 hex_string により指定された 16進数に等価な 10 進数を返します。 HexDec は 16 進数を表す文字列を 10 進数に変換します。 変換できる最大の数字は16進数の 7fffffff もしくは 10 進数の 2147483647 です。

dechex() 関数も参照下さい。