Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

convert to binary number

Mon Oct 27, 2008 12:26 pm

Code:
<?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>";
?>




Post a reply
  Related Posts  to : convert to binary number
 convert binary number to decimal     -  
 convert integer number to octal,hexadecimal number systems     -  
 convert string into binary     -  
 convert octal number to decimal number     -  
 convert decimal number to octal number     -  
 convert char*(number) to required unsigned char*     -  
 binary search     -  
 need help for creatinb binary tree in php     -  
 Read Binary File in C++     -  
 Binary search tree C++     -  

Topic Tags

PHP Variables