PHP bindec() Function

The bindec() function is used to converts a binary number to a decimal number.

Demo :



Binary number :  

Example :

Example: Binary number: 0011

Following code useful to you for converts a binary number to a decimal number.


<?php
$bindec_no = "0011";
$result = bindec($bindec_no);
echo $result;
?>

In the above code is used to converts a binary number to a decimal number.In the bindec() functions have used one parameters that name is string binary_number.

Free Download Script :

If you need bindec() function demo code download from following link.

Download




Content