PHP dechex() FunctionThe dechex() is predefined PHP mathematical function, which is used to convert decimal number to hexadecimal number. Syntax:
Example 1Output: Your Decimal number is : 7 By using 'dechex()'function, your Hexadecimal number is :7 Example 2Output: Your Decimal number is : 10 By using 'dechex()'function, your Hexadecimal number is :a Example 3Output: Your Decimal number is : 30 By using 'dechex()'function, your Hexadecimal number is :1e Example 4Output: Your Decimal number is : 1587 By using 'dechex()'function, your Hexadecimal number is :633 Example 5Output: Your Decimal number is : 70 By using 'dechex()'function, your Hexadecimal number is :46 Example 6Output: ffffffff ffffffff ffffffff
Next TopicPHP Math
|