bindec : Binary Number : Language Basics PHP Source Code


PHP Source Code » Language Basics » Binary Number »

 

bindec




<?php
$orig_dec = 66251125;
$dec2bin = decbin($orig_dec);
$bin2dec = bindec($dec2bin);

echo "original decimal number: $orig_dec <br>";
echo "new binary number: $dec2bin <br>";
echo "back to decimal: $bin2dec <br>";
?>
           
       



HTML code for linking to this page:

    Related in same category :
Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Binary Number