PHP hexadec() FunctionPHP hexadecimal() function is used to convert a hexadecimal to a decimal number. It returns the decimal equivalent of the hexadecimal string to a decimal number. Syntax:
Example 1Output: Your number is :1e By using 'floor()' function your value is:30 Example 2Output: Your number is :a By using 'hexdec()' function your value is:10 Example 3Output: Your number is :11ff By using 'floor()' function your value is:4607 Example 4Output: Your number is :cceeff By using 'hexdec()' function your value is:13430527
Next TopicPHP Math
|