PHP decbin() FunctionPHP decbin() function is mathematical function, which is used to convert a decimal number to a binary number. It returns binary number. Syntax:
Example 1Output: Your Decimal number is : 14 By using 'decbin()'function your Binary number is :1110 Example 2Output: Your Decimal number is : 3 By using 'decbin()'function your Binary number is :11 Example 3Output: Your Decimal number is : 1 By using 'decbin()'function your Binary number is :1 Example 4Output: Your Decimal number is : 1569 By using 'decbin()'function your Binary number is :11000100001 Example 5Output: Your Decimal number is : 7 By using 'decbin()'function your Binary number is :111
Next TopicPHP Math
|