PHP bindec() FunctionPHP bindec() function is mathematical function, which is used to convert binary number to decimal number. It returns the decimal value of binary_string. Note: To convert decimal number to binary number by sing decbin() function.Syntax:
Example 1Output: Your binary number is : 110011 By using bindec()' function your decimal number is :51 Example 2Output: Your binary number is : 01 By using 'bindec()' function your decimal number is :1 Example 3Output: Your binary number is : 000110011 By using 'bindec()' function your decimal number is :51 Example 4Output: Your binary number is : 1010 int(10) Example 5Output: Your binary number is : 10000 By using 'bindec()' function your decimal number is :16
Next TopicPHP Math
|